简体   繁体   中英

Android emulator screen freeze

I've installed android sdk which I'm using on eclipse. When i run my application I have the following log:

[2011-11-02 15:46:43 - HelloAndroid] Android Launch!
[2011-11-02 15:46:43 - HelloAndroid] adb is running normally.
[2011-11-02 15:46:43 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid   activity launch
[2011-11-02 15:46:43 - HelloAndroid] Automatic Target Mode: Preferred AVD 'AVD1' is     available on emulator 'emulator-5554'
[2011-11-02 15:47:15 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2011-11-02 15:47:15 - HelloAndroid] Installing HelloAndroid.apk...
[2011-11-02 15:49:53 - HelloAndroid] Success!
[2011-11-02 15:49:55 - HelloAndroid] Starting activity  com.example.helloandroid.HelloAndroid on device emulator-5554

And the emulator freezes at 'Andoird' screen. I've tried increasing ram and cd size but same result. I've also tried creating new avds, restarting eclipse but nothing seems to work. How can I fix this? I'm using th efollowing code to create my first app:

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
 @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       TextView tv = new TextView(this);
       tv.setText("Hello, Android");
       setContentView(tv);
   }
}

I'm working with windows 7.

It can be due to the emulator locking itself. Try pressing F7 (Power button) key on the emulator.

Now please Edit your ADV in Give size like 2000Mb.

And make sure you give only those condition that it required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM