Android target Type Selection Skills

Source: Internet
Author: User

I don't know. You still remember our BKJIA article about Android Virtual Devices. Users who know about Android should know that virtual devices are AVD in short. Here, you will learn about how to select the Android target type of one of the plug-ins.

AVD (Android Virtual Device) is introduced in Android 1.5 ). Before running your application on the simulator, you must first create an AVD (so it can be understood that AVD is a configured simulator ).

To create an AVD, run the: Android create AVD command. Let's take a look at its usage:

 
 
  1. Usage:   
  2. Android [ global options] action [ action options]   
  3. Global options:   
  4. - h - - help This help.   
  5. - s - - silent Silent mode: only errors are printed out.   
  6. - v - - verbose Verbose mode: errors, warnings 
    and informational messages are pr  
  7. inted.   
  8. Action "create AVD" :   
  9. Creates a new Android Virtual Device.   
  10. Options:   
  11. - t - - target Target id of the new AVD [ required]   
  12. - c - - sdcard Path to a shared SD card image, or size 
    of a new sdcard for the  
  13. new AVD  
  14. - p - - path Location path of the directory where 
    the new AVD will be created  
  15. - n - - name Name of the new AVD [ required]   
  16. - f - - force Force creation ( override an existing AVD)   
  17. - s - - skin Skin of the new AVD 

From the help, you can see that to create a new AVD, you must specify two places, one is-n, that is, name. This is very simple, give your AVD a popular name. The other is-t, that is, target. Currently, SDK1.5 has two types of target: platform and Add-on. Platform is the target of Android Platform, and add-on is the target of Android plug-in.

We can first run the following command to check which Android target types are provided by Android:

 
 
  1. $ Android list targets  
  2. Available Android targets:   
  3. id: 1  
  4. Name: Android 1. 1  
  5. Type: Platform  
  6. API level: 2  
  7. Skins: HVGA ( default ) , HVGA- L, HVGA- P, QVGA- L, QVGA- P  
  8. id: 2  
  9. Name: Android 1. 5  
  10. Type: Platform  
  11. API level: 3  
  12. Skins: HVGA ( default ) , HVGA- L, HVGA- P, QVGA- L, QVGA- P  
  13. id: 3  
  14. Name: Google APIs  
  15. Type: Add- On  
  16. Vendor: Google Inc.   
  17. Description: Android + Google APIs  
  18. Based on Android 1. 5 ( API level 3)   
  19. Libraries:   
  20. * com. google. Android. maps ( maps. jar)   
  21. API for Google Maps  
  22. Skins: HVGA ( default ) , HVGA- L, QVGA- P, HVGA- P, QVGA- L 

These are built-in in Android 1.5. If you use some of your own add-on, it will be displayed here. We will introduce how to use your add-on in the future.

After talking about this, you should have a certain understanding of the AVD Android target type. Back to the original question, how do I select the Android target type when creating an AVD? Here are some notes:

End with an example. For example, I want to create a basic Android 1.5 simulator AVD:

 
 
  1. $ Android create AVD - t 2 –n my1p5AVD  

If you want to view all your current avds and execute Android list AVD, you will see all the AVD details.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.