[Android] Create button to close apps android – Button close app Android

To create this button, you'll first need 1 Button was designed by XLM. At * .java file do the following: Before creating the event finish my app reset main activity because it can close the application when we are in a different activity, when restarting the application will run right into the activity that is not our main activity.

[Java] Drifting in order to use Java Scanner

When using the scanner to enter data in Java are likely to be passed command. For example, as you simply enter the number first and then enter the string, Meanwhile characters “n” (enter) when you enter the number of buffers that have not been retrieved, results when executing the next entry it takes character strings “n” do you not get into. To […]

Bend but not low

The Japanese have a habit of folding over half the visitors who bowed. The so-leaning Japanese familiar greeting guests. In the land of the rising sun, Images leaning hunched bowed express both Japanese culture: Bowed but not condescending. Humility only adds to the respect of human faces. On flights of the airline Japan Airlines, smile […]

[Java] Get the file path in Java – Get File Path in Java

To get the path 1 Java file, use the command file.getAbsolutePath(); However, this command gives us the file we get, example: /media / agency / DATA / textfile.txt that sometimes we just want to get / media / agency / DATA. To do this we make the following: Code illustrations: Output: Absolute file Path : /media/quan/DATA/textfile.txt File Path : /media/quan/DATA

[Java] Creat file, directory in Java

Create a folder in the project : With our first order only declared but not yet created, to create 1 folder must write the second order. Create a folder in the path of any: Create a file in the project: When creating the file may be some exceptions, we have orders file.createNewFile(); trong try catch. Create a file in any folder created similar […]

[Colorful life] A real Chats worth reading ...... ..dang think

Sit around and find this post. Read them all if you have read this! “A real chat with my brother… just sat and watched the screen quietly and cried 1 a sad story ... a lesson that seems old but still valid ...

[Comedy Video] Now he code to do?

The most popular song of China have been put new words to the language of the world characterized programmer, video uploaded by weblaptrinhvideo

[Ubuntu] Directories in Ubuntu – The path folder in Ubuntu

Our normal this Folder: Now want to the toolbar that path, how right? These simple as pressing the key combination: Ctrl + The

[Android] ListView

This problem has been Mr. Tran Duy Thanh write very adequate considering what he knew. Mark the wire looking for something easy :). Thank you for the article! Exercise 13: Practice on ListView in Android

[Java] Convenient shortcut in Eclipse – Keyboard shortcuts in Eclipse

Some commonly used shortcuts in Eclipse, help operations much faster than using Ctrl Menu + B : build project Ctrl + D : remove the line containing the cursor in (usually when there are too many blank lines, I want to pull the code to look for beautiful gathered Beauty) Everything + arrow up / down : move the current line up / down Ctrl + F : search string in class […]