Código Java :
package com.Hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class Hello 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("Hola Cristalab!!"); setContentView(tv); } }
pero me sale el siguiento error cuando lo ejecuto , se abre el emulador y todo pero sale este erro.
Código :
[2010-09-02 16:08:29 - Device]Failed to delete temporary package: device (emulator-5554) request rejected: device not found [2010-09-02 16:24:16 - ddms]null java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.doSyncApp(Unknown Source) at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.syncApp(Unknown Source) at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.clientChanged(Unknown Source) at com.android.ddmlib.AndroidDebugBridge.clientChanged(Unknown Source) at com.android.ddmlib.Device.update(Unknown Source) at com.android.ddmlib.Client.update(Unknown Source) at com.android.ddmlib.HandleAppName.handleAPNM(Unknown Source) at com.android.ddmlib.HandleAppName.handleChunk(Unknown Source) at com.android.ddmlib.MonitorThread.callHandler(Unknown Source) at com.android.ddmlib.MonitorThread.processClientActivity(Unknown Source) at com.android.ddmlib.MonitorThread.run(Unknown Source) [2010-09-02 16:35:23 - ddms]null java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.doSyncApp(Unknown Source) at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.syncApp(Unknown Source) at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.clientChanged(Unknown Source) at com.android.ddmlib.AndroidDebugBridge.clientChanged(Unknown Source) at com.android.ddmlib.Device.update(Unknown Source) at com.android.ddmlib.Client.update(Unknown Source) at com.android.ddmlib.HandleAppName.handleAPNM(Unknown Source) at com.android.ddmlib.HandleAppName.handleChunk(Unknown Source) at com.android.ddmlib.MonitorThread.callHandler(Unknown Source) at com.android.ddmlib.MonitorThread.processClientActivity(Unknown Source) at com.android.ddmlib.MonitorThread.run(Unknown Source)
que puede ser?