WEB开发网
开发学院手机开发Android 开发 Android 开发环境的构建方法总结 阅读

Android 开发环境的构建方法总结

 2010-03-26 15:58:00 来源:WEB开发网   
核心提示:project in Eclipse.1. From Eclipse, select File > New > Project.If the ADT Plugin for Eclipse has been successfully installed, the resulting dialog should
project in Eclipse.

1. From Eclipse, select File > New > Project.

If the ADT Plugin for Eclipse has been successfully installed, the resulting dialog should have a folder labeled “Android” which should contain “Android Project”. (After you create one or more Android projects, an entry for “Android XML File” will also be available.)

2. Select “Android Project” and click Next.

3. Fill in the project details with the following values:

o Project name: HelloAndroid

o Application name: Hello, Android

o Package name: com.example.helloandroid (or your own private namespace)

o Create Activity: HelloAndroid

o Min SDK Version: 7

Click Finish.

Here is a description of each field:

Project Name

This is the Eclipse Project name — the name of the directory that will contain the project files.

Application Name

This is the human-readable title for your application — the name that will appear on the Android device.

Package Name

This is the package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under. This also sets the package name under which the stub Activity will be generated.

Your package name must be unique across all packages installed on the Android system; for this reason, it’s very important to use a standard domain-style package for your applications. The example above uses the “com.example” namespace, which is a namespace reserved for example documentation — when you develop your own applications, you should use a namespace that’s appropriate to your organization or entity.

Create Activity

This is the name for the class stub that will be generated by the plugin. This will be a subclass of Android’s Activity class. An Activity is simply a

上一页  1 2 3 4 5 6 7 8  下一页

Tags:Android 开发 环境

编辑录入:coldstar [复制链接] [打 印]
赞助商链接