Android Studio, Emulator not running newest version - android

I have an android studio project, which builds with 0 errors and 0 warnings, however when the emulator starts up it is a old version of my application.
I have tried wiping data from the emulator, rebuilding the project, cleaning the project, restarting the machine, creating a new virtual machine.
My debug log;
02-05 02:28:53.197 1759-1759/uk.ac.app.app E/libprocessgroup﹕ failed to make and chown /acct/uid_10053: Read-only file system
02-05 02:28:53.197 1759-1759/uk.ac.app.app W/Zygote createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
02-05 02:28:53.198 1759-1759/uk.ac.app.app I/art﹕ Not late-enabling -Xcheck:jni (already on)
02-05 02:28:53.242 1759-1759/uk.ac.app.app W/ActivityThread﹕ Application uk.ac.app.app is waiting for the debugger on port 8100...
02-05 02:28:53.246 1759-1759/uk.ac.app.app I/System.out﹕ Sending WAIT chunk
02-05 02:28:53.299 1759-1766/uk.ac.app.app I/art﹕ Debugger is no longer active
02-05 02:28:54.662 1759-1766/uk.ac.app.app I/art﹕ Debugger is active
02-05 02:28:54.719 1759-1759/uk.ac.app.app I/System.out﹕ Debugger has connected
02-05 02:28:54.720 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:54.924 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.137 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.345 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.563 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.806 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.014 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.224 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.437 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.645 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.865 1759-1759/uk.ac.app.app I/System.out﹕ debugger has settled (1511)
02-05 02:28:58.737 1759-1759/uk.ac.app.app D/gralloc_goldfish﹕ Emulator without GPU emulation detected.
02-05 02:29:06.263 1759-1771/uk.ac.app.app I/art﹕ Background sticky concurrent mark sweep GC freed 1867(113KB) AllocSpace objects, 0(0B) LOS objects, 37% free, 387KB/623KB, paused 2.030ms total 112.509ms

The issue was a broken XML file in the res directory.

Related

Google Play Games C++ SDK Samples fails with Library 'ButtonClickerNativeActivity' not found

I need to experiment with the Google Play Games C++ SDK Samples for Android.
Running it from an emulator fails to sign in requesting to install the Google Play Games... which requires to be done manually, as I understand...
Running it from the Samsung Samsung Galaxy Note 10.1 GT-N8010 executing Android 4.1.2, the Button Clicker application fails at launch with the following error:
Cannot load library: load_library[1094]: Library
'ButtonClickerNativeActivity' not found
Note: This error does not show up when I run it from the emulator.
I don't understand why this fails and how to fix or work around this failure.
The sample loads the so this way:
public class ButtonClickerNativeActivity extends NativeActivity {
// Load SO
static {
System.load("libButtonClickerNativeActivity.so");
}
I confirm the package (ButtonClicker-debug.apk) contains the library in lib folder for armeabi, armeabi-v7a and x86.
Here is the logcat listing of the app start up:
01-28 15:18:44.885 31258-31258/? D/dalvikvm: Late-enabling CheckJNI
01-28 15:18:44.900 31258-31264/? E/jdwp: Failed sending reply to debugger: Broken pipe
01-28 15:18:44.900 31258-31264/? D/dalvikvm: Debugger has detached; object registry had 1 entries
01-28 15:18:44.945 31258-31258/? W/ActivityThread: Application com.google.example.games.ButtonClicker is waiting for the debugger on port 8100...
01-28 15:18:44.960 31258-31258/? I/System.out: Sending WAIT chunk
01-28 15:18:45.915 31258-31264/com.google.example.games.ButtonClicker I/dalvikvm: Debugger is active
01-28 15:18:45.965 31258-31258/com.google.example.games.ButtonClicker I/System.out: Debugger has connected
01-28 15:18:45.965 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.165 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.365 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.565 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.765 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.965 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:47.170 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:47.370 31258-31258/com.google.example.games.ButtonClicker I/System.out: debugger has settled (1325)
01-28 15:18:47.510 31258-31258/com.google.example.games.ButtonClicker D/dalvikvm: Trying to load lib ButtonClickerNativeActivity 0x423b2428
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker W/dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/google/example/games/ButtonClicker/ButtonClickerNativeActivity;
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker W/dalvikvm: Class init failed in newInstance call (Lcom/google/example/games/ButtonClicker/ButtonClickerNativeActivity;)
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker D/AndroidRuntime: Shutting down VM
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41c3d2a0)
01-28 15:18:47.525 31258-31258/com.google.example.games.ButtonClicker E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: load_library[1094]: Library 'ButtonClickerNativeActivity' not found
at java.lang.Runtime.load(Runtime.java:340)
at java.lang.System.load(System.java:521)
at com.google.example.games.ButtonClicker.ButtonClickerNativeActivity.(ButtonClickerNativeActivity.java:29)
at java.lang.Class.newInstanceImpl(Native Method) 
at java.lang.Class.newInstance(Class.java:1319) 
at android.app.Instrumentation.newActivity(Instrumentation.java:1068) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135) 
at android.app.ActivityThread.access$700(ActivityThread.java:140) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:137) 
at android.app.ActivityThread.main(ActivityThread.java:4921) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:511) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805) 
at dalvik.system.NativeStart.main(Native Method) 
01-28 15:18:58.720 31258-31258/? I/Process: Sending signal. PID: 31258 SIG: 9
I changed the following line in the sample code (ButtonClickerNativeActivity.java) and the application launched on the Samsung device without the exception.
public class ButtonClickerNativeActivity extends NativeActivity {
// Load SO
static {
//System.load("libButtonClickerNativeActivity.so");
System.loadLibrary("ButtonClickerNativeActivity");
}

subsequent calls to IntentService fault with NPE in run, but not debug

My Activity is queuing work to an IntentService. When i debug, the code seems to run ok. when i run, i get the logcat results shown below. i added a thread.sleep(1000);, but no change in behavior. My assumption, based on the IntentService documentation is that if the IS is still active, it will queue the 2nd request and if it is inactive, it will restart. Therefore, it's ok to issue back-to-back startService() requests without concern for timing or callbacks with status.
two different intents, bundles and arrays:
final int[] arSim1Config = new int[10];
arSim1Config[0] = 2;
arSim1Config[1] = 101;
arSim1Config[2] = (int)simStartTs;
arSim1Config[3] = simStopTs;
arSim1Config[4] = 20;
arSim1Config[5] = 70;
arSim1Config[6] = 40;
arSim1Config[7] = 8000;
arSim1Config[8] = 5000;
arSim1Config[9] = 17000;
// launch simulator threads using test parameters
Intent inStartSim = new Intent(this, SimService.class);
inStartSim.setAction("genData");
Bundle simBundle = new Bundle();
simBundle.putIntArray("simConfigAr",arSim1Config);
inStartSim.putExtras(simBundle);
startService(inStartSim);
final int[] arSim2Config = new int[10];
arSim2Config[0] = 2;
arSim2Config[1] = 102;
arSim2Config[2] = (int)simStartTs;
arSim2Config[3] = simStopTs;
arSim2Config[4] = 5;
arSim2Config[5] = 110;
arSim2Config[6] = 95;
arSim2Config[7] = 12000;
arSim2Config[8] = 5000;
rSim2Config[9] = 13000;
// launch simulator threads using test parameters
Intent inStartSim2 = new Intent(this, SimService.class);
inStartSim2.setAction("genData");
Bundle simBundle2 = new Bundle();
simBundle2.putIntArray("simConfigAr",arSim2Config);
inStartSim2.putExtras(simBundle2);
startService(inStartSim2);
logcat:
01-30 17:11:34.706 4075-4075/com.smartmedtek.prj.smartmed03 I/art﹕ Not late-enabling -Xcheck:jni (already on)
01-30 17:11:34.821 4075-4075/com.smartmedtek.prj.smartmed03 W/ActivityThread﹕ Application com.smartmedtek.prj.smartmed03 is waiting for the debugger on port 8100...
01-30 17:11:34.831 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ Sending WAIT chunk
01-30 17:11:34.844 4075-4082/com.smartmedtek.prj.smartmed03 I/art﹕ Debugger is active
01-30 17:11:34.845 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ Debugger has connected
01-30 17:11:34.845 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.071 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.281 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.500 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.720 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.932 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.151 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.361 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.571 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.781 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.990 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:37.200 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:37.410 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:37.621 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ debugger has settled (1434)
01-30 17:11:37.979 4075-4075/com.smartmedtek.prj.smartmed03 D/MainActivity﹕ onCreate() No saved state available
01-30 17:11:38.049 4075-4095/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Render dirty regions requested: true
01-30 17:11:38.052 4075-4075/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa6bdaf50, tid 4075
01-30 17:11:38.055 4075-4075/com.smartmedtek.prj.smartmed03 D/Atlas﹕ Validating map...
01-30 17:11:38.296 4075-4095/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa5f0a230, tid 4095
01-30 17:11:38.319 4075-4095/com.smartmedtek.prj.smartmed03 I/OpenGLRenderer﹕ Initialized EGL, version 1.4
01-30 17:11:38.363 4075-4095/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Enabling debug mode 0
01-30 17:11:38.387 4075-4095/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:11:38.387 4075-4095/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5f2a460, error=EGL_SUCCESS
01-30 17:11:38.451 4075-4096/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.02172712E9
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.02172717E9
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.02172722E9
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:11:54.971 4075-4096/com.smartmedtek.prj.smartmed03 E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[SimService]
Process: com.smartmedtek.prj.smartmed03, PID: 4075
java.lang.NullPointerException: Attempt to get length of null array
at com.smartmedtek.prj.smartmed03.SimService.onHandleIntent(SimService.java:117)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
01-30 17:11:55.057 4075-4075/com.smartmedtek.prj.smartmed03 I/Choreographer﹕ Skipped 995 frames! The application may be doing too much work on its main thread.
01-30 17:12:20.776 4075-4075/com.smartmedtek.prj.smartmed03 D/MainActivity﹕ onCreate() No saved state available
01-30 17:12:20.905 4075-4095/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:12:20.905 4075-4095/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5f2a460, error=EGL_SUCCESS
01-30 17:12:21.184 4075-4095/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:12:21.184 4075-4095/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5f9a9c0, error=EGL_SUCCESS
01-30 17:16:55.107 4075-4096/com.smartmedtek.prj.smartmed03 I/Process﹕ Sending signal. PID: 4075 SIG: 9
01-30 17:16:55.732 4123-4123/com.smartmedtek.prj.smartmed03 D/MainActivity﹕ onCreate() Restoring previous state
01-30 17:16:55.786 4123-4138/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Render dirty regions requested: true
01-30 17:16:55.846 4123-4123/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa6c7d660, tid 4123
01-30 17:16:55.915 4123-4123/com.smartmedtek.prj.smartmed03 D/Atlas﹕ Validating map...
01-30 17:16:55.984 4123-4138/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa6c7d950, tid 4138
01-30 17:16:56.084 4123-4138/com.smartmedtek.prj.smartmed03 I/OpenGLRenderer﹕ Initialized EGL, version 1.4
01-30 17:16:56.111 4123-4138/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Enabling debug mode 0
01-30 17:16:56.138 4123-4138/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:16:56.138 4123-4138/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6caccc0, error=EGL_SUCCESS
01-30 17:16:56.471 4123-4138/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:16:56.472 4123-4138/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6cacdc0, error=EGL_SUCCESS
01-30 17:16:56.545 4123-4140/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:16:56.545 4123-4140/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.022045268E9
01-30 17:16:56.545 4123-4140/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.022045318E9
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.022045368E9
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:16:56.551 4123-4140/com.smartmedtek.prj.smartmed03 E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[SimService]
Process: com.smartmedtek.prj.smartmed03, PID: 4123
java.lang.NullPointerException: Attempt to get length of null array
at com.smartmedtek.prj.smartmed03.SimService.onHandleIntent(SimService.java:117)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
01-30 17:21:56.621 4123-4140/com.smartmedtek.prj.smartmed03 I/Process﹕ Sending signal. PID: 4123 SIG: 9
01-30 17:11:34.706 4075-4075/com.smartmedtek.prj.smartmed03 I/art﹕ Not late-enabling -Xcheck:jni (already on)
01-30 17:11:34.821 4075-4075/com.smartmedtek.prj.smartmed03 W/ActivityThread﹕ Application com.smartmedtek.prj.smartmed03 is waiting for the debugger on port 8100...
01-30 17:11:34.831 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ Sending WAIT chunk
01-30 17:11:34.844 4075-4082/com.smartmedtek.prj.smartmed03 I/art﹕ Debugger is active
01-30 17:11:34.845 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ Debugger has connected
01-30 17:11:34.845 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.071 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.281 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.500 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.720 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:35.932 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.151 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.361 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.571 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.781 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:36.990 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:37.200 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:37.410 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ waiting for debugger to settle...
01-30 17:11:37.621 4075-4075/com.smartmedtek.prj.smartmed03 I/System.out﹕ debugger has settled (1434)
01-30 17:11:37.979 4075-4075/com.smartmedtek.prj.smartmed03 D/MainActivity﹕ onCreate() No saved state available
01-30 17:11:38.049 4075-4095/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Render dirty regions requested: true
01-30 17:11:38.052 4075-4075/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa6bdaf50, tid 4075
01-30 17:11:38.055 4075-4075/com.smartmedtek.prj.smartmed03 D/Atlas﹕ Validating map...
01-30 17:11:38.296 4075-4095/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa5f0a230, tid 4095
01-30 17:11:38.319 4075-4095/com.smartmedtek.prj.smartmed03 I/OpenGLRenderer﹕ Initialized EGL, version 1.4
01-30 17:11:38.363 4075-4095/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Enabling debug mode 0
01-30 17:11:38.387 4075-4095/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:11:38.387 4075-4095/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5f2a460, error=EGL_SUCCESS
01-30 17:11:38.451 4075-4096/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.02172712E9
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.02172717E9
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.02172722E9
01-30 17:11:38.452 4075-4096/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:11:54.971 4075-4096/com.smartmedtek.prj.smartmed03 E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[SimService]
Process: com.smartmedtek.prj.smartmed03, PID: 4075
java.lang.NullPointerException: Attempt to get length of null array
at com.smartmedtek.prj.smartmed03.SimService.onHandleIntent(SimService.java:117)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
01-30 17:11:55.057 4075-4075/com.smartmedtek.prj.smartmed03 I/Choreographer﹕ Skipped 995 frames! The application may be doing too much work on its main thread.
01-30 17:12:20.776 4075-4075/com.smartmedtek.prj.smartmed03 D/MainActivity﹕ onCreate() No saved state available
01-30 17:12:20.905 4075-4095/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:12:20.905 4075-4095/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5f2a460, error=EGL_SUCCESS
01-30 17:12:21.184 4075-4095/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:12:21.184 4075-4095/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5f9a9c0, error=EGL_SUCCESS
01-30 17:16:55.107 4075-4096/com.smartmedtek.prj.smartmed03 I/Process﹕ Sending signal. PID: 4075 SIG: 9
01-30 17:16:55.732 4123-4123/com.smartmedtek.prj.smartmed03 D/MainActivity﹕ onCreate() Restoring previous state
01-30 17:16:55.786 4123-4138/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Render dirty regions requested: true
01-30 17:16:55.846 4123-4123/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa6c7d660, tid 4123
01-30 17:16:55.915 4123-4123/com.smartmedtek.prj.smartmed03 D/Atlas﹕ Validating map...
01-30 17:16:55.984 4123-4138/com.smartmedtek.prj.smartmed03 D/﹕ HostConnection::get() New Host Connection established 0xa6c7d950, tid 4138
01-30 17:16:56.084 4123-4138/com.smartmedtek.prj.smartmed03 I/OpenGLRenderer﹕ Initialized EGL, version 1.4
01-30 17:16:56.111 4123-4138/com.smartmedtek.prj.smartmed03 D/OpenGLRenderer﹕ Enabling debug mode 0
01-30 17:16:56.138 4123-4138/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:16:56.138 4123-4138/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6caccc0, error=EGL_SUCCESS
01-30 17:16:56.471 4123-4138/com.smartmedtek.prj.smartmed03 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
01-30 17:16:56.472 4123-4138/com.smartmedtek.prj.smartmed03 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6cacdc0, error=EGL_SUCCESS
01-30 17:16:56.545 4123-4140/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:16:56.545 4123-4140/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.022045268E9
01-30 17:16:56.545 4123-4140/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.022045318E9
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/strmId val:﹕ 101.0
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/TS val:﹕ 1.022045368E9
01-30 17:16:56.546 4123-4140/com.smartmedtek.prj.smartmed03 D/ramp val:﹕ 70.0
01-30 17:16:56.551 4123-4140/com.smartmedtek.prj.smartmed03 E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[SimService]
Process: com.smartmedtek.prj.smartmed03, PID: 4123
java.lang.NullPointerException: Attempt to get length of null array
at com.smartmedtek.prj.smartmed03.SimService.onHandleIntent(SimService.java:117)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
01-30 17:21:56.621 4123-4140/com.smartmedtek.prj.smartmed03 I/Process﹕ Sending signal. PID: 4123 SIG: 9

Android OpenGl 2.0 ES force device reboot

I currently try switching to OpenGL ES 2.0. I load two textures with 2048x2048 pixel and render some parts off the textures. The app works on HTC One S, HTC Desire S, HTC Sensation, Asus Iconia A100 and Nexus 7. On Nexus 4 and the new HTC One the app shows a black screen for 1 min following by a device restart. LogCat doesn't show exceptions or errors.
The draw function of my SurfaceView will never be called.
Any suggestion?
[2013-04-29 05:41:04 - PinguActivity] Android Launch!
[2013-04-29 05:41:04 - PinguActivity] adb is running normally.
[2013-04-29 05:41:04 - PinguActivity] Performing com.asgardsoft.pingu.PinguActivity activity launch
[2013-04-29 05:41:04 - PinguActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-04-29 05:41:10 - PinguActivity] Uploading PinguActivity.apk onto device '************'
[2013-04-29 05:41:11 - PinguActivity] Installing PinguActivity.apk...
[2013-04-29 05:41:16 - PinguActivity] Success!
[2013-04-29 05:41:16 - PinguActivity] Starting activity com.asgardsoft.pingu.PinguActivity on device ************
[2013-04-29 05:41:17 - PinguActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.asgardsoft.pingu/.PinguActivity }
[2013-04-29 05:41:17 - PinguActivity] Attempting to connect debugger to 'com.asgardsoft.pingu' on port 8600
LogCat:
04-29 05:41:15.339: E/Trace(11875): error opening trace file: No such file or directory (2)
04-29 05:41:15.349: I/System.out(11875): Sending WAIT chunk
04-29 05:41:15.349: W/ActivityThread(11875): Application com.asgardsoft.pingu is waiting for the debugger on port 8100...
04-29 05:41:15.549: I/System.out(11875): Debugger has connected
04-29 05:41:15.549: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:15.749: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:15.949: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:16.150: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:16.350: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:16.550: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:16.760: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:16.960: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:17.161: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:17.361: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:17.561: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:17.761: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:17.961: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:18.162: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:18.362: I/System.out(11875): waiting for debugger to settle...
04-29 05:41:18.562: I/System.out(11875): debugger has settled (1460)
04-29 05:41:19.253: D/libc(11875): pt_debug : pthread_create->start_routine=0x40cc4645, tls=0x53a99f00, arg=0x5319adc8
04-29 05:41:19.263: D/libc(11875): pt_debug : __thread_entry->func=0x40cc4645
04-29 05:41:19.263: D/libc(11875): , tls=0x53a99f00, arg=0x5319adc8
04-29 05:41:27.402: D/libc(11875): pt_debug : pthread_create->start_routine=0x40cc4645, tls=0x53b99f00, arg=0x4f5584f8
04-29 05:41:27.402: D/libc(11875): pt_debug : __thread_entry->func=0x40cc4645
04-29 05:41:27.402: D/libc(11875): , tls=0x53b99f00, arg=0x4f5584f8
04-29 05:41:27.442: I/Choreographer(11875): Skipped 480 frames! The application may be doing too much work on its main thread.
04-29 05:41:27.522: I/Adreno200-EGL(11875): <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_RB4.04.01.02.16.028_msm8960_JB_REL_RB4.2_Merge_release_AU (Merge)
04-29 05:41:27.522: I/Adreno200-EGL(11875): Build Date: 12/06/12 Thu
04-29 05:41:27.522: I/Adreno200-EGL(11875): Local Branch:
04-29 05:41:27.522: I/Adreno200-EGL(11875): Remote Branch: m/jb_rel_rb4.2
04-29 05:41:27.522: I/Adreno200-EGL(11875): Local Patches: NONE
04-29 05:41:27.522: I/Adreno200-EGL(11875): Reconstruct Branch: NOTHING
04-29 05:41:27.562: D/memalloc(11875): ion: Mapped buffer base:0x53b9a000 size:2088960 offset:0 fd:60
04-29 05:41:27.562: D/memalloc(11875): ion: Mapped buffer base:0x40128000 size:4096 offset:0 fd:62
04-29 05:41:27.602: D/libc(11875): pt_debug : pthread_create->start_routine=0x51271e31, tls=0x54010f00, arg=0x501361d0
04-29 05:41:27.602: D/memalloc(11875): ion: Mapped buffer base:0x54011000 size:1044480 offset:0 fd:65
04-29 05:41:27.602: D/memalloc(11875): ion: Mapped buffer base:0x40757000 size:4096 offset:0 fd:67
04-29 05:41:27.622: D/libc(11875): pt_debug : __thread_entry->func=0x51271e31
04-29 05:41:27.622: D/libc(11875): , tls=0x54010f00, arg=0x501361d0
04-29 05:41:29.504: W/Adreno200-ES20(11875): <process_gl_state_enables:463>: GL_INVALID_ENUM
04-29 05:41:29.644: I/dalvikvm-heap(11875): Grow heap (frag case) to 26.853MB for 16777232-byte allocation
04-29 05:41:34.259: I/dalvikvm-heap(11875): Grow heap (frag case) to 26.849MB for 16777232-byte allocation
04-29 05:41:39.945: I/dalvikvm-heap(11875): Grow heap (frag case) to 26.851MB for 16777232-byte allocation
04-29 05:41:40.345: D/memalloc(11875): ion: Mapped buffer base:0x54333000 size:1044480 offset:0 fd:69
04-29 05:41:40.345: D/memalloc(11875): ion: Mapped buffer base:0x407d8000 size:4096 offset:0 fd:71
04-29 05:41:40.536: D/memalloc(11875): ion: Mapped buffer base:0x54432000 size:1044480 offset:0 fd:73
04-29 05:41:40.536: D/memalloc(11875): ion: Mapped buffer base:0x40901000 size:4096 offset:0 fd:75
thanks
ronald

Change Attached Source [duplicate]

This question already has answers here:
Source not found Android?
(5 answers)
Closed 9 years ago.
I have been debugging my android project but when i am trying to step into a braekpoint then a screen comes which says SOURCE NOT FOUND ....plz suggest a solution..i have seen previous suggestions but those didnt work....there is an option provided-- CHANGE ATTACHED SOURCE.. which source i have to provide?? i am providing the link for the video..it is ellaborated in the video..plz help...thanks in advance for ur answers
https://docs.google.com/file/d/0B_I2kWyZePW6VnhOLUxjTFhpTk0/edit?usp=sharing
this is what the log cat says:
04-15 11:15:02.380: D/AndroidRuntime(379): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
04-15 11:15:02.380: D/AndroidRuntime(379): CheckJNI is ON
04-15 11:15:02.490: D/AndroidRuntime(379): --- registering native functions ---
04-15 11:15:03.250: D/dalvikvm(284): GC_EXPLICIT freed 523 objects / 29592 bytes in 131ms
04-15 11:15:03.490: D/PackageParser(59): Scanning package: /data/app/vmdl55176.tmp
04-15 11:15:03.960: D/dalvikvm(59): GC_FOR_MALLOC freed 18707 objects / 974816 bytes in 89ms
04-15 11:15:04.030: I/PackageManager(59): Removing non-system package:com.drugindexx.demo
04-15 11:15:04.030: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:04.030: I/Process(59): Sending signal. PID: 362 SIG: 9
04-15 11:15:04.050: W/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4507a590
04-15 11:15:04.440: D/PackageManager(59): Scanning package com.drugindexx.demo
04-15 11:15:04.440: I/PackageManager(59): Package com.drugindexx.demo codePath changed from /data/app/com.drugindexx.demo-1.apk to /data/app/com.drugindexx.demo- 2.apk; Retaining data and using new
04-15 11:15:04.450: I/PackageManager(59): /data/app/com.drugindexx.demo-2.apk changed; unpacking
04-15 11:15:04.471: D/installd(35): DexInv: --- BEGIN '/data/app/com.drugindexx.demo-2.apk' ---
04-15 11:15:04.820: D/dalvikvm(386): DexOpt: load 42ms, verify 205ms, opt 7ms
04-15 11:15:04.830: D/installd(35): DexInv: --- END '/data/app/com.drugindexx.demo-2.apk' (success) ---
04-15 11:15:04.830: W/PackageManager(59): Code path for pkg : com.drugindexx.demo changing from /data/app/com.drugindexx.demo-1.apk to /data/app/com.drugindexx.demo-2.apk
04-15 11:15:04.830: W/PackageManager(59): Resource path for pkg : com.drugindexx.demo changing from /data/app/com.drugindexx.demo-1.apk to /data/app/com.drugindexx.demo-2.apk
04-15 11:15:04.830: D/PackageManager(59): Activities: com.drugindexx.demo.jsonparsngactivity com.drugindexx.demo.LoginPage com.drugindexx.demo.Registration com.drugindexx.demo.UserDetails com.drugindexx.demo.MenuOptions com.drugindexx.demo.SarchIndx com.drugindexx.demo.jsonparsngactivity com.drugindexx.demo.Showdetails com.drugindexx.demo.SmsEx com.drugindexx.demo.Settings com.drugindexx.demo.AdvancedSearch com.drugindexx.demo.Gmap com.drugindexx.demo.MyItemizedOverlay com.drugindexx.demo.G
04-15 11:15:04.850: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:04.950: I/installd(35): move /data/dalvik-cache/data#app#com.drugindexx.demo-2.apk#classes.dex -> /data/dalvik-cache/data#app#com.drugindexx.demo-2.apk#classes.dex
04-15 11:15:04.950: D/PackageManager(59): New package installed in /data/app/com.drugindexx.demo-2.apk
04-15 11:15:05.080: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:05.140: D/dalvikvm(134): GC_EXPLICIT freed 69 objects / 2728 bytes in 50ms
04-15 11:15:05.390: W/RecognitionManagerService(59): no available voice recognition services found
04-15 11:15:05.490: D/dalvikvm(155): GC_EXPLICIT freed 1809 objects / 92640 bytes in 328ms
04-15 11:15:05.710: D/dalvikvm(59): GC_EXPLICIT freed 8511 objects / 535000 bytes in 199ms
04-15 11:15:05.710: I/installd(35): unlink /data/dalvik-cache/data#app#com.drugindexx.demo-1.apk#classes.dex
04-15 11:15:05.710: D/AndroidRuntime(379): Shutting down VM
04-15 11:15:05.741: D/dalvikvm(379): Debugger has detached; object registry had 1 entries
04-15 11:15:05.760: I/dalvikvm(379): JNI: AttachCurrentThread (from ???.???)
04-15 11:15:05.760: I/AndroidRuntime(379): NOTE: attach of thread 'Binder Thread #3' failed
04-15 11:15:06.220: D/AndroidRuntime(392): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
04-15 11:15:06.220: D/AndroidRuntime(392): CheckJNI is ON
04-15 11:15:06.330: D/AndroidRuntime(392): --- registering native functions ---
04-15 11:15:06.850: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:06.850: I/ActivityManager(59): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.drugindexx.demo/.jsonparsngactivity }
04-15 11:15:06.960: D/AndroidRuntime(392): Shutting down VM
04-15 11:15:06.969: I/ActivityManager(59): Start proc com.drugindexx.demo for activity com.drugindexx.demo/.jsonparsngactivity: pid=398 uid=10040 gids={3003}
04-15 11:15:06.980: D/jdwp(392): Got wake-up signal, bailing out of select
04-15 11:15:06.980: D/dalvikvm(392): Debugger has detached; object registry had 1 entries
04-15 11:15:07.260: W/ActivityThread(398): Application com.drugindexx.demo is waiting for the debugger on port 8100...
04-15 11:15:07.280: I/System.out(398): Sending WAIT chunk
04-15 11:15:07.290: I/dalvikvm(398): Debugger is active
04-15 11:15:07.310: I/System.out(398): Debugger has connected
04-15 11:15:07.310: I/System.out(398): waiting for debugger to settle...
04-15 11:15:07.519: I/System.out(398): waiting for debugger to settle...
04-15 11:15:07.719: I/System.out(398): waiting for debugger to settle...
04-15 11:15:07.919: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.119: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.320: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.519: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.719: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.919: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.149: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.356: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.564: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.772: I/System.out(398): debugger has settled (1408)
04-15 11:15:13.110: W/System.err(398): java.lang.NullPointerException
04-15 11:15:13.129: W/System.err(398): at java.net.URI$Helper.parseURI(URI.java:314)
04-15 11:15:13.129: W/System.err(398): at java.net.URI$Helper.access$100(URI.java:302)
04-15 11:15:13.140: W/System.err(398): at java.net.URI.<init>(URI.java:87)
04-15 11:15:13.140: W/System.err(398): at com.drugindexx.others.JSONParser.getStringContent(JSONParser.java:37)
04-15 11:15:13.140: W/System.err(398): at com.drugindexx.demo.jsonparsngactivity$FindStoreLocators.doInBackground(jsonparsngactivity.java:237)
04-15 11:15:13.150: W/System.err(398): at com.drugindexx.demo.jsonparsngactivity$FindStoreLocators.doInBackground(jsonparsngactivity.java:1)
04-15 11:15:13.150: W/System.err(398): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-15 11:15:13.160: W/System.err(398): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-15 11:15:13.170: W/System.err(398): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-15 11:15:13.170: W/System.err(398): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-15 11:15:13.181: W/System.err(398): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-15 11:15:13.181: W/System.err(398): at java.lang.Thread.run(Thread.java:1096)
04-15 11:15:16.922: W/ActivityManager(59): Launch timeout has expired, giving up wake lock!
04-15 11:15:17.221: W/ActivityManager(59): Activity idle timeout for HistoryRecord{44eb0d10 com.drugindexx.demo/.jsonparsngactivity}
04-15 11:15:22.391: D/dalvikvm(284): GC_EXPLICIT freed 216 objects / 14432 bytes in 106ms
04-15 11:15:27.490: D/dalvikvm(295): GC_EXPLICIT freed 848 objects / 58536 bytes in 148ms
04-15 11:15:32.220: D/dalvikvm(398): threadid=7: still suspended after undo (sc=1 dc=1 s=Y)
04-15 11:15:32.500: D/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
04-15 11:15:32.521: D/dalvikvm(248): GC_EXPLICIT freed 317 objects / 17472 bytes in 135ms
04-15 11:15:37.489: D/dalvikvm(134): GC_EXPLICIT freed 784 objects / 44784 bytes in 48ms
04-15 11:17:27.744: D/dalvikvm(398): threadid=7: still suspended after undo (sc=1 dc=1 s=Y)
I think what you are trying to do is to debug android sources.
And if you want to do that you need to attach the sources check out :
http://code.google.com/p/adt-addons/
But be aware: It's very unlikely that you are really needed to debug the sources, because more likely you did something wrong (Exception) BEFORE the "class not found..." Window pops up.

Android how to avoid NullPointException

I have NullPointException in my code, and this is the reason why my app is crashing...
I'm new in Android development, so can you please help me to avoid this Null exception?
here is some code, where i think is this error:
#Override
public void onClick(View v) {
btn_skip = (Button) findViewById(R.id.btn_skip);
// get data
String email_txt = email.getEditableText().toString();
String confirme_email = confirm_email.getEditableText().toString();
//get IMEI
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
imei = telephonyManager.getDeviceId();
if (v == btn_skip)
{
sendPostRequest(null, null, imei);
}
//if email is not valid then show errors
else if (!checkEmail(email.getText().toString()) && v == btn_get_access)
{
email_error.setVisibility(View.VISIBLE);
email.requestFocus();
//Toast.makeText(getBaseContext(), "lkdjfgkdjg", Toast.LENGTH_LONG).show();
}
//else if (!confirme_email.equals(email_txt) && v == btn_get_access)
else if (!email_txt.equals(confirme_email))
{
email_confirm_error.setVisibility(View.VISIBLE);
confirm_email.requestFocus();
}
else
{
email_error.setVisibility(View.GONE);
email_confirm_error.setVisibility(View.GONE);
sendPostRequest(email_txt, confirme_email, imei);
}
}
so how i get this error:
in my app i have 2 activities, and i can switch them by buttons, first button send some data which i get from user on the server (all inputs are filled with data), with the second button i can skip the input filling and go to the second screen(all inputs are empty);
from the 2nd screen i can go back to the first screen without any data(and when i press this back button, i have this null exception).
Please help me with this error, because i can't imagine how to avoid it...
UPD LOGCAT
03-05 10:01:07.214: W/ActivityThread(12011): Application com.vladimir.expert_suise is waiting for the debugger on port 8100...
03-05 10:01:07.224: I/System.out(12011): Sending WAIT chunk
03-05 10:01:07.224: I/dalvikvm(12011): Debugger is active
03-05 10:01:07.424: I/System.out(12011): Debugger has connected
03-05 10:01:07.424: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:07.624: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:07.814: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:08.014: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:08.215: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:08.415: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:08.615: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:08.815: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:09.015: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:09.226: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:09.426: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:09.626: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:09.826: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:10.026: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:10.226: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:10.427: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:10.627: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:10.827: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:11.027: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:11.227: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:11.428: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:11.628: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:11.828: I/System.out(12011): waiting for debugger to settle...
03-05 10:01:12.028: I/System.out(12011): debugger has settled (1463)
03-05 10:01:13.620: D/libEGL(12011): loaded /system/lib/egl/libGLES_android.so
03-05 10:01:13.800: D/libEGL(12011): loaded /system/lib/egl/libEGL_adreno200.so
03-05 10:01:14.080: D/libEGL(12011): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
03-05 10:01:14.080: D/libEGL(12011): loaded /system/lib/egl/libGLESv2_adreno200.so
03-05 10:01:14.401: I/Adreno200-EGLSUB(12011): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:14.561: D/memalloc(12011): ashmem: Mapped buffer base:0x520a0000 size:1536000 fd:61
03-05 10:01:14.591: D/OpenGLRenderer(12011): Enabling debug mode 0
03-05 10:01:15.141: D/OpenGLRenderer(12011): has fontRender patch
03-05 10:01:15.171: D/OpenGLRenderer(12011): has fontRender patch
03-05 10:01:15.211: D/OpenGLRenderer(12011): has fontRender patch
03-05 10:01:15.281: D/memalloc(12011): ashmem: Mapped buffer base:0x5251a000 size:1536000 fd:64
03-05 10:01:15.962: D/memalloc(12011): ashmem: Mapped buffer base:0x52691000 size:1536000 fd:67
03-05 10:01:19.996: I/Adreno200-EGLSUB(12011): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:20.006: D/memalloc(12011): ashmem: Mapped buffer base:0x52b08000 size:1536000 fd:76
03-05 10:01:20.316: D/memalloc(12011): ashmem: Mapped buffer base:0x52cff000 size:1536000 fd:79
03-05 10:01:20.647: I/Adreno200-EGLSUB(12011): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:20.657: D/memalloc(12011): ashmem: Mapped buffer base:0x52f76000 size:1536000 fd:82
03-05 10:01:20.797: D/memalloc(12011): ashmem: Mapped buffer base:0x530ed000 size:1536000 fd:88
03-05 10:01:20.957: D/memalloc(12011): ashmem: Mapped buffer base:0x53264000 size:1536000 fd:91
03-05 10:01:21.157: D/memalloc(12011): ashmem: Mapped buffer base:0x533db000 size:1536000 fd:94
03-05 10:01:21.177: D/OpenGLRenderer(12011): Flushing caches (mode 0)
03-05 10:01:21.207: D/OpenGLRenderer(12011): Flushing caches (mode 0)
03-05 10:01:22.999: I/Adreno200-EGLSUB(12011): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:23.019: D/memalloc(12011): ashmem: Mapped buffer base:0x5251a000 size:1536000 fd:63
03-05 10:01:23.309: D/memalloc(12011): ashmem: Mapped buffer base:0x52691000 size:1536000 fd:69
03-05 10:01:23.419: I/Adreno200-EGLSUB(12011): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:23.429: D/memalloc(12011): ashmem: Mapped buffer base:0x52a08000 size:1536000 fd:79
03-05 10:01:23.610: D/memalloc(12011): ashmem: Mapped buffer base:0x52cff000 size:1536000 fd:88
03-05 10:01:23.660: D/memalloc(12011): ashmem: Mapped buffer base:0x530ed000 size:1536000 fd:97
03-05 10:01:23.830: D/memalloc(12011): ashmem: Mapped buffer base:0x53552000 size:1536000 fd:100
03-05 10:01:23.850: D/OpenGLRenderer(12011): Flushing caches (mode 0)
03-05 10:01:23.870: D/OpenGLRenderer(12011): Flushing caches (mode 0)
03-05 10:01:25.291: I/Adreno200-EGLSUB(12011): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:25.301: D/memalloc(12011): ashmem: Mapped buffer base:0x5261a000 size:1536000 fd:63
03-05 10:01:25.451: D/memalloc(12011): ashmem: Mapped buffer base:0x52e76000 size:1536000 fd:82
03-05 10:01:25.481: D/OpenGLRenderer(12011): Flushing caches (mode 0)
03-05 10:01:25.882: D/memalloc(12011): ashmem: Mapped buffer base:0x52a08000 size:1536000 fd:79
03-05 10:01:27.603: D/AndroidRuntime(12011): Shutting down VM
03-05 10:01:27.603: W/dalvikvm(12011): threadid=1: thread exiting with uncaught exception (group=0x40ad9228)
03-05 10:01:27.633: E/AndroidRuntime(12011): FATAL EXCEPTION: main
03-05 10:01:27.633: E/AndroidRuntime(12011): java.lang.NullPointerException
03-05 10:01:27.633: E/AndroidRuntime(12011): at com.vladimir.expert_suise.FirstScreen.onClick(FirstScreen.java:174)
03-05 10:01:27.633: E/AndroidRuntime(12011): at android.view.View.performClick(View.java:3549)
03-05 10:01:27.633: E/AndroidRuntime(12011): at android.view.View$PerformClick.run(View.java:14400)
03-05 10:01:27.633: E/AndroidRuntime(12011): at android.os.Handler.handleCallback(Handler.java:605)
03-05 10:01:27.633: E/AndroidRuntime(12011): at android.os.Handler.dispatchMessage(Handler.java:92)
03-05 10:01:27.633: E/AndroidRuntime(12011): at android.os.Looper.loop(Looper.java:154)
03-05 10:01:27.633: E/AndroidRuntime(12011): at android.app.ActivityThread.main(ActivityThread.java:4945)
03-05 10:01:27.633: E/AndroidRuntime(12011): at java.lang.reflect.Method.invokeNative(Native Method)
03-05 10:01:27.633: E/AndroidRuntime(12011): at java.lang.reflect.Method.invoke(Method.java:511)
03-05 10:01:27.633: E/AndroidRuntime(12011): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-05 10:01:27.633: E/AndroidRuntime(12011): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-05 10:01:27.633: E/AndroidRuntime(12011): at dalvik.system.NativeStart.main(Native Method)
03-05 10:01:30.747: D/Process(12011): killProcess, pid=12011
03-05 10:01:30.757: D/Process(12011): dalvik.system.VMStack.getThreadStackTrace(Native Method)
03-05 10:01:30.757: D/Process(12011): java.lang.Thread.getStackTrace(Thread.java:599)
03-05 10:01:30.757: D/Process(12011): android.os.Process.killProcess(Process.java:788)
03-05 10:01:30.757: D/Process(12011): com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:104)
03-05 10:01:30.757: D/Process(12011): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
03-05 10:01:30.757: D/Process(12011): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
03-05 10:01:30.757: D/Process(12011): dalvik.system.NativeStart.main(Native Method)
03-05 10:01:30.757: I/Process(12011): Sending signal. PID: 12011 SIG: 9
03-05 10:01:31.307: D/libEGL(12216): loaded /system/lib/egl/libGLES_android.so
03-05 10:01:31.307: D/libEGL(12216): loaded /system/lib/egl/libEGL_adreno200.so
03-05 10:01:31.307: D/libEGL(12216): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
03-05 10:01:31.317: D/libEGL(12216): loaded /system/lib/egl/libGLESv2_adreno200.so
03-05 10:01:31.337: I/Adreno200-EGLSUB(12216): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:31.357: D/memalloc(12216): ashmem: Mapped buffer base:0x51fa0000 size:1536000 fd:61
03-05 10:01:31.367: D/OpenGLRenderer(12216): Enabling debug mode 0
03-05 10:01:31.417: D/OpenGLRenderer(12216): has fontRender patch
03-05 10:01:31.437: D/OpenGLRenderer(12216): has fontRender patch
03-05 10:01:31.467: D/OpenGLRenderer(12216): has fontRender patch
03-05 10:01:31.507: D/memalloc(12216): ashmem: Mapped buffer base:0x5241a000 size:1536000 fd:64
03-05 10:01:31.918: D/memalloc(12216): ashmem: Mapped buffer base:0x52691000 size:1536000 fd:67
03-05 10:01:47.313: D/AndroidRuntime(12216): Shutting down VM
03-05 10:01:47.313: W/dalvikvm(12216): threadid=1: thread exiting with uncaught exception (group=0x40ad9228)
03-05 10:01:47.313: E/AndroidRuntime(12216): FATAL EXCEPTION: main
03-05 10:01:47.313: E/AndroidRuntime(12216): java.lang.NullPointerException
03-05 10:01:47.313: E/AndroidRuntime(12216): at com.vladimir.expert_suise.FirstScreen.onClick(FirstScreen.java:174)
03-05 10:01:47.313: E/AndroidRuntime(12216): at android.view.View.performClick(View.java:3549)
03-05 10:01:47.313: E/AndroidRuntime(12216): at android.view.View$PerformClick.run(View.java:14400)
03-05 10:01:47.313: E/AndroidRuntime(12216): at android.os.Handler.handleCallback(Handler.java:605)
03-05 10:01:47.313: E/AndroidRuntime(12216): at android.os.Handler.dispatchMessage(Handler.java:92)
03-05 10:01:47.313: E/AndroidRuntime(12216): at android.os.Looper.loop(Looper.java:154)
03-05 10:01:47.313: E/AndroidRuntime(12216): at android.app.ActivityThread.main(ActivityThread.java:4945)
03-05 10:01:47.313: E/AndroidRuntime(12216): at java.lang.reflect.Method.invokeNative(Native Method)
03-05 10:01:47.313: E/AndroidRuntime(12216): at java.lang.reflect.Method.invoke(Method.java:511)
03-05 10:01:47.313: E/AndroidRuntime(12216): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-05 10:01:47.313: E/AndroidRuntime(12216): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-05 10:01:47.313: E/AndroidRuntime(12216): at dalvik.system.NativeStart.main(Native Method)
03-05 10:01:49.064: D/Process(12216): killProcess, pid=12216
03-05 10:01:49.064: D/Process(12216): dalvik.system.VMStack.getThreadStackTrace(Native Method)
03-05 10:01:49.064: D/Process(12216): java.lang.Thread.getStackTrace(Thread.java:599)
03-05 10:01:49.064: D/Process(12216): android.os.Process.killProcess(Process.java:788)
03-05 10:01:49.064: D/Process(12216): com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:104)
03-05 10:01:49.064: D/Process(12216): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
03-05 10:01:49.064: D/Process(12216): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
03-05 10:01:49.064: D/Process(12216): dalvik.system.NativeStart.main(Native Method)
03-05 10:01:49.064: I/Process(12216): Sending signal. PID: 12216 SIG: 9
03-05 10:01:49.545: D/libEGL(12233): loaded /system/lib/egl/libGLES_android.so
03-05 10:01:49.555: D/libEGL(12233): loaded /system/lib/egl/libEGL_adreno200.so
03-05 10:01:49.555: D/libEGL(12233): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
03-05 10:01:49.555: D/libEGL(12233): loaded /system/lib/egl/libGLESv2_adreno200.so
03-05 10:01:49.575: I/Adreno200-EGLSUB(12233): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:01:49.585: D/memalloc(12233): ashmem: Mapped buffer base:0x51fb9000 size:1536000 fd:62
03-05 10:01:49.585: D/OpenGLRenderer(12233): Enabling debug mode 0
03-05 10:01:49.645: D/OpenGLRenderer(12233): has fontRender patch
03-05 10:01:49.665: D/OpenGLRenderer(12233): has fontRender patch
03-05 10:01:49.685: D/OpenGLRenderer(12233): has fontRender patch
03-05 10:01:49.755: D/memalloc(12233): ashmem: Mapped buffer base:0x52466000 size:1536000 fd:65
03-05 10:01:50.135: D/memalloc(12233): ashmem: Mapped buffer base:0x526dd000 size:1536000 fd:68
03-05 10:01:51.347: D/OpenGLRenderer(12233): Flushing caches (mode 0)
03-05 10:01:51.447: W/IInputConnectionWrapper(12233): showStatusIcon on inactive InputConnection
03-05 10:01:51.447: W/IInputConnectionWrapper(12233): InputConnection = com.android.internal.widget.EditableInputConnection#40dd02e8, active client = false
03-05 10:01:51.647: D/OpenGLRenderer(12233): Flushing caches (mode 1)
03-05 10:02:00.155: D/OpenGLRenderer(12233): Flushing caches (mode 1)
03-05 10:02:08.814: D/OpenGLRenderer(12233): Flushing caches (mode 1)
03-05 10:02:08.994: D/OpenGLRenderer(12233): Flushing caches (mode 2)
03-05 10:02:32.427: W/ActivityThread(12468): Application com.vladimir.expert_suise is waiting for the debugger on port 8100...
03-05 10:02:32.447: I/System.out(12468): Sending WAIT chunk
03-05 10:02:32.447: I/dalvikvm(12468): Debugger is active
03-05 10:02:32.647: I/System.out(12468): Debugger has connected
03-05 10:02:32.647: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:32.847: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:33.047: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:33.247: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:33.448: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:33.648: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:33.848: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:34.048: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:34.248: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:34.449: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:34.649: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:34.859: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:35.049: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:35.249: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:35.450: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:35.650: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:35.850: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:36.050: I/System.out(12468): waiting for debugger to settle...
03-05 10:02:36.250: I/System.out(12468): debugger has settled (1356)
03-05 10:02:37.502: D/libEGL(12468): loaded /system/lib/egl/libGLES_android.so
03-05 10:02:37.532: D/libEGL(12468): loaded /system/lib/egl/libEGL_adreno200.so
03-05 10:02:37.582: D/libEGL(12468): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
03-05 10:02:37.582: D/libEGL(12468): loaded /system/lib/egl/libGLESv2_adreno200.so
03-05 10:02:37.652: I/Adreno200-EGLSUB(12468): <ConfigWindowMatch:2078>: Format RGBA_8888.
03-05 10:02:37.692: D/memalloc(12468): ashmem: Mapped buffer base:0x520a0000 size:1536000 fd:61
03-05 10:02:37.702: D/OpenGLRenderer(12468): Enabling debug mode 0
03-05 10:02:37.902: D/OpenGLRenderer(12468): has fontRender patch
03-05 10:02:37.922: D/OpenGLRenderer(12468): has fontRender patch
03-05 10:02:37.952: D/OpenGLRenderer(12468): has fontRender patch
03-05 10:02:38.002: D/memalloc(12468): ashmem: Mapped buffer base:0x5251a000 size:1536000 fd:64
03-05 10:02:38.312: D/memalloc(12468): ashmem: Mapped buffer base:0x52691000 size:1536000 fd:67
03-05 10:03:07.731: D/dalvikvm(12468): Debugger has detached; object registry had 776 entries
03-05 10:03:07.731: D/AndroidRuntime(12468): Shutting down VM
03-05 10:03:07.731: W/dalvikvm(12468): threadid=1: thread exiting with uncaught exception (group=0x40ad9228)
03-05 10:03:07.731: E/AndroidRuntime(12468): FATAL EXCEPTION: main
03-05 10:03:07.731: E/AndroidRuntime(12468): java.lang.NullPointerException
03-05 10:03:07.731: E/AndroidRuntime(12468): at com.vladimir.expert_suise.FirstScreen.onClick(FirstScreen.java:174)
03-05 10:03:07.731: E/AndroidRuntime(12468): at android.view.View.performClick(View.java:3549)
03-05 10:03:07.731: E/AndroidRuntime(12468): at android.view.View$PerformClick.run(View.java:14400)
03-05 10:03:07.731: E/AndroidRuntime(12468): at android.os.Handler.handleCallback(Handler.java:605)
03-05 10:03:07.731: E/AndroidRuntime(12468): at android.os.Handler.dispatchMessage(Handler.java:92)
03-05 10:03:07.731: E/AndroidRuntime(12468): at android.os.Looper.loop(Looper.java:154)
03-05 10:03:07.731: E/AndroidRuntime(12468): at android.app.ActivityThread.main(ActivityThread.java:4945)
03-05 10:03:07.731: E/AndroidRuntime(12468): at java.lang.reflect.Method.invokeNative(Native Method)
03-05 10:03:07.731: E/AndroidRuntime(12468): at java.lang.reflect.Method.invoke(Method.java:511)
03-05 10:03:07.731: E/AndroidRuntime(12468): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-05 10:03:07.731: E/AndroidRuntime(12468): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-05 10:03:07.731: E/AndroidRuntime(12468): at dalvik.system.NativeStart.main(Native Method)
try to remove Context like this:
TelephonyManager tManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
String IMEI = tManager.getDeviceId();
taken from Using Telephony Manager in android to find IMEI number
Have you taken permission in manifest file??
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

Categories

Resources