Finally:
Implement the SD card file browser
Technical analysis:
Mainly used controls: ListView
How to fill in the ListView control, you need to traverse all the files under the entire SD card. If you traverse a folder, first obtain all the
There were few things in the past few days, so I summarized some of the things I used earlier.
The storage space on the android mobile phone mainly includes the storage space of the mobile phone itself and the storage space of the SD card.
Let's take a look at an example of a layout file:
Android: id = "@ + id/relativeLayout1"
Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent">
Android: layout_width = "200dp"
Android: layout_height =
Since the recent study has not reached the network, there has been no questions about the simulator surfing the Internet. Yesterday, I was asked to solve a problem about remote desktop background image download before I got into touch with the
Currently, different application architecture designs in Android application packages have some disadvantages. However, with the upgrade of the Android version, many good architectures are finally saved.
These can be seen from the source code of
Knowledge about TelephonyManager and cell phone battery
1. TelephonyManager is located in the android. telephony package and provides a series of get methods for accessing the status and information related to mobile phone communication. Procedure:
I read a book today and saw this effect. I used the onTouchEvent (MotionEvent event) method before, but I didn't think it was so helpful. So I wrote it myself and it felt good, if the game is used in the future, click the screen to slide on the
I recently read about launcher. In launcher, after selecting the folder option, select "Daming Address Book" and create a real-time folder in the launcher on the main interface to bring up the contact name, then we can process it, click to enter the
Consult Baidu/Google
This is the most common method. If you encounter a problem during development, but you are not familiar with it, you can search for keywords in Baidu/Google to find relevant information.
We recommend that you search on the
How does one count the time used to start an Activity?
You can analyze the Log (this is the Log of DDMS ).
When we click the touch button, the following Log A is displayed:
03-06 03:36:47. 865: VERBOSE/InputDevice (2486): ID [0] = 0 (0) Dn (0 => 1)
In XML layout, where is the touch origin of the custom View ?? This is another problem. The learning process is the process of constantly discovering and solving problems. Well, I believe everyone has a deep understanding. This time we will study
For developers who develop android drivers or conduct android transplantation and customization, obtaining the android kernel source code is essential.
Unfortunately, google's android.git.kernel.org has been suspended due to a hacker attack
Data is the core of Shenma platform, Shenma development environment, Shenma software program. For the development platform, if you have good support for data storage, it will greatly promote application development.
Generally, there are three
Summary: The program we wrote needs to be updated (the old version has been installed by default), but there is no sdcard when the user updates it. If sdcard exists, so you don't need to talk nonsense...
First, let's talk about the basic
Let's take a look at PlayerPrefs APIs,
Let me explain,
SetInt is to save a PlayerPrefs. SetInt ("Player Score", 10 );,
GetInt is used to read a PlayerPrefs. GetInt ("Player Score") value. They are a pair and used as an integer for
During development, the improper use of singleTask causes unnecessary troubles. The following is a summary:
Existing Activity: A, B, C, D; the Starting sequence is A-> B-> C-> D. Where B is of singleTask.
After A to B, A finishes; after B
Today, I have worked out apk packaging and shared it with everyone.
Aapt package-m-J src-M AndroidManifest. xml-S res-I android. jar
// This Command Re-generates the R. java file automatically, for example, adding an image or string or adding an
Recently, I made a small function to achieve the effect similar to gallery. However, you need to select the first item and do not want to move it to the very beginning to have free space, if you try to use the gallery that comes with android, you
An Activity is a separate component focused by users. Almost all activities can interact with users. Therefore, you can use setContentView (View) to follow the creation window of an Activity) this function places its own UI in the created window.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service