Learn about android-create a runtime environment, and learn about android-

Source: Internet
Author: User

Learn about android-create a runtime environment, and learn about android-

The Android program needs to run on the Android phone. Therefore, you must prepare the relevant runtime and debugging environment for Android development.

  • Android real machine (it is recommended that you use a real machine with high speed and good results)
  • Android Virtual Device (AVD)

When using a real machine as a running environment, you only need to complete the following three steps:Step:

Check USB debugging

 

Use AVDAs a running and debugging environment

Android SDK provides developers with a "Virtual phone" that can run on their computers. Android calls it Android Virtual Device (AVD). If developers do not have an Android phone, you can use AVD to run our Android program.

First, we need to create an AVD. We can use the command to create AVD, or use the AVD manager to easily create AVD. The AVD manager can be found in eclipse.

Select Android Virtual Manager. The dialog box is displayed ,:

 

We can see from the AVD manager that we currently have available AVD, so we need to first create an AVD, click the button on the right New ..., A new window is displayed.

 

AVD Name is the Name of our virtual Device. I named it zhangyi. Device refers to the model of the simulated Device. Here I select analog Nexus S to make other options, depending on your preferences.

The Target value is the system version of the simulator device. Currently, I only have 4.2.2 here. If your sdk version has been downloaded a lot, you can select it as needed. The simulator does not have a camera, so the front camera and the rear camera do not make a choice. Finally, we allocate a space of 1024 MB to the simulator. Click OK to complete the creation.

Wait a moment and the AVD is created successfully. Next we can see the AVD we just created in the AVD manager.

 

Then we can start the simulator zhangyi. Click the start button on the right to bring up the following small window:

Click the Launch button. Wait a moment and the simulator will appear in front of you.

OK. After that, our simulator is started successfully. If the simulator is started, do not close it.

The preparations are almost done. Next we will start to create our first Android project. Looking forward to ing ~~~~

 

 

 

 

 

 

 

 

 

 

 

 

 


The first Activity is not automatically generated when an Android project is created.

Today I also met! I have been using adt for a long time. This problem has never been solved in previous versions! It may be a bug.
I have solved the problem and told you the solution!
First, check whether your path is correct.
Run the cmd command: If javac can bring up a large number of English options, there will be no problem. Otherwise, your environment variables may have problems. You need to modify them.
Second: change back to the old version of adt. adt-bundle-windows-x86-20131030 is indeed not created
I found an old version online.
Pan.baidu.com/s/1o6qHbCY this version is 64-bit. If you want 32-bit data, search for it on Baidu.




How to create an android project using MyEclipse

You have installed the latest adt-r20. In this version, Android Projret has been changed to android application rpoject. This wizard is more powerful.

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.