Details about Android plug-ins

Source: Internet
Author: User

Android plug-ins provided by Android make it very simple to run our program. In most cases, each Android application runs in its own Linux Process, android divides processes into "importance levels" based on components running in these processes and their statuses ".

A much simpler development library than Symbian is attractive to developers. From Androidm3trial, I tried his development environment and run it on the simulator. The interface is still good. Now GPhone on the commodity market has appeared, and the Development SDK has also increased to 1.5, write an entry-level environment configuration.

1. download and install the SDK

First, go to the android standard SDK (forJava) to a directory. D:/Android-sdk-winddows-1.5 to add a Path in the system Path d:/Android-sdk-winddows-1.5/tools so that this SDK can be used, how simple, is the most simple one of my mobile development platform so far, it is simpler than BlackBerry.

2. Use EclipseIDE

Download and install Eclipse, which everyone knows. But it must be Eclipse3.3 or later. I have not succeeded in adding the plug-in with 3.2 for half a day. Of course, I want to install a plug-in. Android provides a plug-in called ADT AndroidDevelopementToolkit), download one.

Run Eclipse and open the menu Help-> SoftwareUpdateds> FindandInstall... Click "NewArchiveSite". After eclipse3.4, it should be the AddSite that opened the downloaded ADT Zip file. Finish, select the components in them, and then step by step NextandOK. Finally, you choose Installall, and then, of course, restart Eclipse. Of course, you can also install it Online, in addition, if your Eclipse has installed another version of AndroidADT, you must Uninstall it (from Help> SoftwareUpdates> ManageConfiguration, and Uninstall it)

Iii. Associated sdks

Run Eclipse, open the menu Windows> Preferences, find the Android plug-in, locate SDKLocation, and then Apply, OK

4. Create a test project:

This is simple. In Eclipse, new... other finds Android and selects Androidproject. Press Wizard. Step by step, OK, modify your Activity class, and add TextViewtv = newTextView (this); TV to the onCreate function. setText ("Hello, World! "); This. setContentView (TV );

In Eclipse, choose File> New> Project. If you have successfully installed the Android plug-in, you will see an entry named "Android" in the pop-up new Project dialog box that contains a Project named "Android Project ".

Select "Android Project" and click Next to go to the Next step. In the displayed Project Properties window, enter the following field: Project Name: the Name of the directory where the Project file is saved on the computer. Package Name: this is the same Package Name as Java-your source code will belong to this Package Name. At the same time, stub Activity will also generate

Activity Name: the Android plug-in will create a stub Class Based on this Name. It is a subclass inherited from the Activity class. Activity is similar to a simple class that can run and work. It can create user interfaces according to your needs. Of course this is not necessary.

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: 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.