Android Learning Series (20) -- parse JSON in APP data format (Basic Introduction and good introduction to JSON)Http://my.eoe.cn/874311/archive/1936.html
Parsing data files in Android (JSON parsing [retrieving data from the server and parsing it,
Seejoplayer video player on Android platform (function introduction and source code parsing, with source code)Http://www.blogjava.net/zh-weir/archive/2011/03/23/310617.html
Use vitamio to create your android universal player (10)-local playback (
Menu can be said in any
Program Is indispensable, and Android is no exception. The menu creation process in Android is as follows:
Public static final int main = menu. first;
Public static final int dictionary = menu. First + 1;
Public static final
The basic principle is to create an XML file in the drawable directory to describe the background image. The content is as follows:
">
16
Then specify
Android: progressdrawable attribute. The attribute value is the XML file just
Build an android Development Environment (android4.0.3)
1. First download the relevant software
1). JDK 6 or above
2). Eclipse (version 3.6.2 or higher) Click to download
3). The SDK (android-sdk_r18-windows) is currently the latestClick to
The first research here is how to obtain the package name and main activity name of all applications in the Android mobile phone.
// Obtain the package name of all applicationsIntent intent = new intent (intent. action_main, null );Intent.
Today is the first day to officially start learning Android. A month ago, after setting up the environment and running Hello world, I never paid much attention to it. I chose the book "android SDK development example book 2". Today I will introduce
Address: http://www.linuxidc.com/Linux/2012-01/52649.htm
Is the recommended color value for Android interface development in the help document. For details, refer:
Add some common color values:
# ffffff # fffff0 # ffffe0 # FFFF00 #
To create an input method for the input text box or other views, you must inherit the inputmethodservice class. Inputmethodservice provides a lot of basic implementations of input methods, terms of Management Status, visibility of input methods, and
Android provided by Google contains the original Android target machine code, host compilation tools, and simulation environment. After the code package is decompressed, the first-level directories and files are as follows:
.
| -- Makefile (Global
During project development over the past few days, if you want to read the content in a text file, write a method to read the content in the text file. The Code is as follows:
// Read the content of a text filePublic static string readtxtfile
The following is a method for writing text files in Android development. The Code is as follows:
// Write the string to a text filePublic static void writetxtfile (string strcontent, string strfilepath){// Line feed is written each time it is
Generally, shortcuts are not automatically created after the android application is installed. Therefore, you can implement shortcuts when the application is started.
Permission required
The attribute of the activity corresponding to the shortcut
Android multi-touch is essentially supported by LCD drivers and programming. Currently, mobile phones that use capacitive screen touch can support multi-touch multitouch technology, provides a better user experience for webpage scaling and gesture
There are three common tools for parsing XML on the Android platform: Dom, sax, and pull.
First, Dom,
It features full loading at a time. If the data size is small, it is still efficient. If the XML file is large, the speed will be slow.
Method 2:
In the following example, we will experiment with all the content mentioned above. In this example, an activity contains two fragment items. One shows the playing tracks of Shakespeare's plays, and the other shows the abstract of the selected tracks.
Shortcut Key
To speed up operations on the option menu, you can add shortcut keys to the menu on devices with physical buttons. Shortcut Keys can correspond to letters or numbers on the keyboard. What you need to do isAttribute specified by
I. Preparations 1. Download The msysgit Tool Git client program in windows,: http://code.google.com/p/msysgit/See:2. Install the msysgit Tool See: 3. Create a folder on the disk To store the android source code downloaded by the GIT tool, see: 4.
After you click "Restore factory settings", the system restarts and enters the system again. All data is cleared. How can you determine whether to restore the factory settings? How can I mark the restore factory settings event? After the system is
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