I collected a bunch of Android code from the Internet, such as the login program of Android and the helloworld program of Android, but I still cannot run a correct program correctly. I 've been depressed for a long time, finally, after a test, the program of the self-built project was successfully run in the android simulator. The following is a summary of the procedure startup interface settings:
In the android project created by myeclipse, find the androidmanifest. xml file and double-click it.
After setting the program running, start the androidmanifest. xml file on the login interface as follows:
<? XML version = "1.0" encoding = "UTF-8"?>
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Package = "com. GP. aciti.pdf"
Android: versioncode = "1"
Android: versionname = "1.0" type = "codeph" text = "/codeph">
<! -- Set the android SDK version running in the simulator -->
<Uses-SDK Android: minsdkversion = "8" Android: targetsdkversion = "18"/>
<! -- Get network operation permissions -->
<Uses-Permission Android: Name = "android. Permission. change_newwork_state"/>
<! -- Android running settings -->
<Application
Android: allowbackup = "true"
Android: icon = "@ drawable/ic_launcher"
Android: Label = "@ string/app_name"
Android: theme = "@ style/apptheme">
<! -- Start the login interface settings for online collection and sorting -->
<Activity
Android: Name = "com. GP. acitivity. loginactivity">
<! -- Set the program to be started first. Copy the following code to the specified position for the activity to be started -->
<Intent-filter>
<Action Android: Name = "android. Intent. Action. Main"/>
<Category Android: Name = "android. Intent. Category. launcher"/>
</Intent-filter>
</Activity>
<! -- Start the helloworld interface settings for online collection and sorting -->
<Activity
Android: Name = "com. GP. acitivity. hellowoldactivity">
</Activity>
</Application>
</Manifest>
After setting the program running, start the androidmanifest. xml file on the helloworld interface as follows:
<? XML version = "1.0" encoding = "UTF-8"?>
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Package = "com. GP. aciti.pdf"
Android: versioncode = "1"
Android: versionname = "1.0" type = "codeph" text = "/codeph">
<! -- Set the android SDK version running in the simulator -->
<Uses-SDK Android: minsdkversion = "8" Android: targetsdkversion = "18"/>
<! -- Get network operation permissions -->
<Uses-Permission Android: Name = "android. Permission. change_newwork_state"/>
<! -- Android running settings -->
<Application
Android: allowbackup = "true"
Android: icon = "@ drawable/ic_launcher"
Android: Label = "@ string/app_name"
Android: theme = "@ style/apptheme">
<! -- Start the login interface settings for online collection and sorting -->
<Activity
Android: Name = "com. GP. acitivity. loginactivity">
</Activity>
<! -- Start the helloworld interface settings for online collection and sorting -->
<Activity
Android: Name = "com. GP. acitivity. hellowoldactivity">
<! -- Set the program to be started first. Copy the following code to the specified position for the activity to be started -->
<Intent-filter>
<Action Android: Name = "android. Intent. Action. Main"/>
<Category Android: Name = "android. Intent. Category. launcher"/>
</Intent-filter>
</Activity>
</Application>
</Manifest>
System Android Simulator Interface
Start the login interface
Start the helloworld Interface