Android Netbeans 7 Emulator not working -


i'm having problem android emulator in netbeans 7. i'm making helloworld project. here code:

package org.me.androidapplication1;  import android.app.activity; import android.os.bundle; import android.widget.textview;  public class mainactivity extends activity {    /** called when activity first created. */    @override    public void oncreate(bundle savedinstancestate) {        super.oncreate(savedinstancestate);        textview tv = new textview(this);        tv.settext("hello, android");        setcontentview(tv);    } } 

my project uses android 2.1-update1 (api level 7). checked avd manager, , avd i'm using has exact same android version project. when run it, emulator pops on screen in black background: "a n d r o d _"

and stays there. no "hello, android" anywhere seen on screen. checked "android development" tab in netbeans, , got these errors:

package helloworld-debug.apk deployed starting activity org.me.androidapplication1.mainactivity on device emulator-5554 activitymanager: ddm dispatch reg wait timeout activitymanager: can't dispatch ddm chunk 52454151: no handler defined activitymanager: can't dispatch ddm chunk 48454c4f: no handler defined activitymanager: can't dispatch ddm chunk 46454154: no handler defined activitymanager: can't dispatch ddm chunk 4d505251: no handler defined device not ready in 3. activitymanager: android.util.androidexception: can't connect activity manager; system running? 

also after while, emulator shows "android", in logo. , nothing happens.

seems emulator had not booted totall, wait while until android desktop appears, run project again! had same problem, when wait enough time let n d r o d _ stay blinking, got desktop!


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -