ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloa

Problem


When i run an Android application HelloAndroid, the program is blocking the following sentences.

 

=============================================================================================

[2011-06-17 10:48:39 - HelloAndroid] ------------------------------

[2011-06-17 10:48:39 - HelloAndroid] Android Launch!

[2011-06-17 10:48:39 - HelloAndroid] adb is running normally.

[2011-06-17 10:48:39 - HelloAndroid] Performing com.example.helloandroid.HelloAndroidActivity activity launch

[2011-06-17 10:48:39 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'My_AVD'

[2011-06-17 10:48:39 - HelloAndroid] Launching a new emulator with Virtual Device 'My_AVD'

[2011-06-17 10:48:48 - HelloAndroid] New emulator found: emulator-5554

[2011-06-17 10:48:48 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...

[2011-06-17 10:49:09 - SDK Manager] Warning: Ignoring platform 'android-12.7z', not a folder.

[2011-06-17 10:50:25 - HelloAndroid] HOME is up on device 'emulator-5554'

[2011-06-17 10:50:25 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'

[2011-06-17 10:50:25 - HelloAndroid] Installing HelloAndroid.apk...

[2011-06-17 10:51:57 - HelloAndroid] Success!

[2011-06-17 10:51:58 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroidActivity on device emulator-5554

[2011-06-17 10:52:01 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroidActivity }

=====================================================================================/=

 

Fixed   problem=======================================================================

 

 

When the program runs to this step as shown above, i view the emulator without "Hello Android!" output. Based on my knowledge at that time, i suspect the application is crash or emulator is down. In fact, due to loading emulator at the first time, the application ''HelloAndroid' executes slowly. So when i restart the emulator manually and rerun the app, "Hello Android" is shown on the emulator i defined.

 

How to start an emulator manually?

 

I just show how to start it in Eclipse. Start Eclipse, and then select Window --> Android SDK and AVD Manager, as shown in the following figure1.1. Select Virtual Devices, if there is a emulator, select it and then click the Start button. If not, click the button New to create a new AVD.

 

Figure 1.1 Manually starting AVD

 

 

 

你可能感兴趣的:(Android,Study)