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.
Android enables mp3 player to play music.
Intent it = new Intent (Intent. ACTION_VIEW );
Uri uri = Uri. parse ("file: // sdcard/song.mp3 ");
It. setDataAndType (uri, "audio/mp3 ");
StartActivity (it );
Uri uri = Uri. withAppendedPath
This problem has not been solved for a long time in Chinese. I tried to search Google in English today. Opening the first webpage solved the long-standing problem.
Problem description: Frame Animation continuous playback-android Frame
Some time ago, we engaged in android animation. After using the animation on the page, the effect was quite good, which greatly improved the user experience. However, by chance, to add a display and disappear animation in the popupwindow, I used
1. SimpleDateFormat formatter = new SimpleDateFormat ("MM dd, yyyy HH: mm: ss ");
2. Date curDate = new Date (System. currentTimeMillis (); // obtain the current time
3. String str = formatter. format (curDate );
4. import java. text.
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
This section describes parameter transfer between activities. We know that intent can achieve mutual jump between activities. We also need to pass some parameters while redirecting. The following describes how to pass parameters in an activity,
The error "Unable to start activity ComponentInfo" or "Unable to instantiate activity ComponentInfo" in Android was recently made in a music player, this error "Unable to start activity ComponentInfo" is reported during the debugging process. It
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
Today I want to learn about anddroid Gesture. I found some materials online and wrote a Demo myself.
Allows you to manually drag images.
You can drag images from left to right, right to left, top to bottom, and bottom to top.
A simple
In Android, asynchronous processing requires important Service and Handler components. Today, let's first learn about the Service components,
The method for inter-process communication and bindService () in Android Service is explained next time.
1
The previous articles introduced the usage of some basic classes in the libgdx framework, and also included some of the source code. But if libgdx is used for actual development?
It is not enough to understand several classes. You also need to
Pull parses XML documents;
First, create an android project and create a project named person_list and xml in cn. class3g. service:
Tom 20 Mary 17 Tom 20 Mary 17
Encapsulate javabean, person:
Package cn. class3g. domain; Public class
For example, if an API of a higher version is discarded from an API of a lower version, the program will crash if the API of a lower version is used for development. The solution is as follows:
General structure:
Assume that the SDK version
I haven't logged on to ubuntu for a few days. Later, because the customer wanted to add new features, he had to modify the source code of android Mms. However, this time I found a very strange problem. After adding the string and drawable resources,
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