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

來源:互聯網
上載者:User

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

 

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.