Java Reference
In-Depth Information
droid:icon="@drawable/icon">
<activity android:name="java7meetsandroid"
android:label="@string/app_name">
<intent-filter>
<action
an-
droid:name="android.intent.action.main" />
<category
an-
droid:name="android.intent.category.launcher" />
</intent-filter>
</activity>
</application>
</manifest>
Creating Java7MeetsAndroid
Several steps must be followed to create Java7MeetsAndroid . The first step is to
use the android tool to create a project. When used in this way, android requires
youtoadheretothefollowingsyntax(whichisspreadacrossmultiplelinesforreadab-
ility):
android create project --target target_ID
--name your_project_name
--path
/ path / to / your / project / pro-
ject_name
--activity your_activity_name
--package your_package_namespace
Exceptfor --name (or -n ),whichspecifiestheproject'sname(whenprovided,this
name will be used for the resulting .apk filename when you build your app), all the
following options are required:
• The --target (or -t ) option specifies the app's build target. The tar-
get_ID value is an integer value that identifies an Android platform. You
can obtain this value by invoking android list targets . If you've
onlyinstalledtheAndroid2.3.3platform,thiscommandshouldoutputasingle
Android 2.3.3 platform target identified as integer ID 1.
• The --path (or -p )optionspecifiestheprojectdirectory'slocation.Thedir-
ectory is created if it doesn't exist.
Search WWH ::




Custom Search