1. Open the command window and click "start" ---> "run" ----> Enter cmd and press Enter.
21. Enter the directory of Android SDK 1.5 and enter the following command line:Mksdcard 100 m d:/sdcardxy. img
M indicates the size of the sdcard, and
ADB is the basis for communication between the host and Android devices. The ddms mentioned above is also based on ADB, but it only performs graphics. The main Commands of ADB include:
ADB devices: lists all Android devices connected to the host.
The style attribute plays a role in a space, while the theme attribute plays a role in the entire activity and application. Theme can be used to unify the entireProgramAnd then use the style to fine-tune some of the styles. Some widgets in andorid
From: http://www.cnblogs.com/l_dragon/archive/2011/08/09/2132409.html
Just as DOTNET development requires msdn and Java development requires JDK documentation, it is best to have corresponding help documentation before Android development.
In
Create the bin directory in Android to execute the following commands:
Mkdir Bin
And add it to the environment variable path (this step can be skipped and will be described in step 1 ):
Path = ~ /Android/bin: $ path
1. Install git
Sudo
Android requires allProgramA signature is required. Otherwise, the program will not be installed. During our development process, ADT uses debug keystore and sets it in preference-> Android-> buid. By default, the debug keystore is valid for one
In an activity, you can call startactivity () multiple times to start another activity. To generate only one activity instance, there are two methods.
Method 1: Set the start Mode An activity has four startup modes: Standard, singletop, singletask,
As you can see in the previous section, the preferenceactivity class allows you to create and modify preference information at runtime. To use these preferences, you need to use the sharedpreferences class.
1. continue to use the project in the
On my device, the default preference name is net. Manoel. usingpreferences_preferences.xml. This name uses the package name as the prefix. However, defining a special name for a preference is also very helpful. Follow the steps below.
public class
Dbadapter has been created. Now we can use the database. The following section describes general CRUD (ADD, read, update, and delete ).
Add a contact to the table.
1. Use the previous project and add some code in databasesactivity. java.
public
During development, creating a database in advance is more efficient than creating a database when the program is running. For example, you want to write a program that displays the coordinates of all the places you have been. In this case, it is
The best way to understand contentprovider is to try it by yourself. The following describes how to use a built-in contacts contentprovider.
1. Create a project, provider.
2. Code in Main. xml.
3. The code in provideractivity.
From: http://blog.csdn.net/k1102k27/article/details/7106124
In Android source code development, some global labels or variables are often used. At this time, we can add the desired attributes to the Android system.
1. settings. System
This type of
There are two implementation methods for Android UI: one is to directly hardcode the UI in the code, and the other is to layout the UI in XML. Because I need to draw some curves on The View, the view class is derived directly. You can use
From: http://blog.csdn.net/mr_raptor/article/details/80905081.1 Sensor Application Framework
This part is familiar to upper-layer write applications. We use a simple application to analyze the implementation of the framework layer and the bottom
The new Android sdk1.5 provides AVD to better simulate the real environment. However, you need to set the android_sdk_home environment variable. Otherwise, the AVD manger and Android commands place the newly created AVD in the user directory by
Timepicker:
A view for selecting the time of day, in either 24 hour or am/PM mode. the hour, each minute digit, and am/PM (if applicable) can be conrolled by vertical spinners. the hour can be entered by keyboard input. entering in two digit hours
Recently I wrote a project involving viewpager, But abnormal customers do not need to slide.
The method is simple.
Rewrite viewpager and paste the code.
Import Android. content. context;Import Android. Support. v4.view. viewpager;Import Android.
In traditional UI development, if the background size is different, you generally need to create an image for each size, which is particularly evident in the button. Of course, we can also make a small horizontal duplicate or vertical painting. In
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