ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUN

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 selectWindow --> Android SDK and AVD Manager, as shown in the following figure1.1. SelectVirtual Devices, if there is a emulator, select it and then click theStart button. If not, click the button New to create a new AVD.

 

Figure 1.1 Manually starting AVD

 


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值