Android Hieve has stopped - Android development error? - android

I have downloaded the code for android app from here
And i had run this code in my eclipse but i had recieved some errors.
Here i am giving you log cat of project.
11-27 11:15:59.549: I/Choreographer(913): Skipped 53 frames! The application may be doing too much work on its main thread.
11-27 11:15:59.589: D/gralloc_goldfish(913): Emulator without GPU emulation detected.
11-27 11:16:03.049: I/Choreographer(913): Skipped 57 frames! The application may be doing too much work on its main thread.
11-27 11:16:05.910: I/Choreographer(913): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:16:06.030: I/Choreographer(913): Skipped 53 frames! The application may be doing too much work on its main thread.
11-27 11:16:08.874: D/InputEventConsistencyVerifier(913): KeyEvent: ACTION_UP but key was not down.
11-27 11:16:08.874: D/InputEventConsistencyVerifier(913): in android.widget.EditText{40d0a440 VFED..CL .F....I. 8,99-232,129 #7f080002 app:id/txtEmail}
11-27 11:16:08.874: D/InputEventConsistencyVerifier(913): 0: sent at 138840000000, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_TAB, scanCode=15, metaState=0, flags=0x8, repeatCount=0, eventTime=138840, downTime=138687, deviceId=0, source=0x101 }
11-27 11:16:11.334: I/Choreographer(913): Skipped 88 frames! The application may be doing too much work on its main thread.
11-27 11:16:11.846: I/Choreographer(913): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:16:12.374: I/Choreographer(913): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:16:12.775: I/Choreographer(913): Skipped 32 frames! The application may be doing too much work on its main thread.
11-27 11:16:15.032: I/Choreographer(913): Skipped 86 frames! The application may be doing too much work on its main thread.
11-27 11:16:15.815: D/dalvikvm(913): GC_CONCURRENT freed 206K, 13% free 2550K/2900K, paused 109ms+12ms, total 235ms
11-27 11:16:16.370: I/Choreographer(913): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:16:18.554: I/Choreographer(913): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:16:19.490: I/Choreographer(913): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:16:20.714: I/Choreographer(913): Skipped 69 frames! The application may be doing too much work on its main thread.
11-27 11:16:23.045: I/Choreographer(913): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:16:24.014: I/dalvikvm(913): Could not find method com.google.android.gcm.GCMRegistrar.checkDevice, referenced from method com.androidhive.pushnotifications.MainActivity.onCreate
11-27 11:16:24.014: W/dalvikvm(913): VFY: unable to resolve static method 110: Lcom/google/android/gcm/GCMRegistrar;.checkDevice (Landroid/content/Context;)V
11-27 11:16:24.014: D/dalvikvm(913): VFY: replacing opcode 0x71 at 0x0040
11-27 11:16:24.064: I/dalvikvm(913): Could not find method com.google.android.gcm.GCMRegistrar.onDestroy, referenced from method com.androidhive.pushnotifications.MainActivity.onDestroy
11-27 11:16:24.064: W/dalvikvm(913): VFY: unable to resolve static method 114: Lcom/google/android/gcm/GCMRegistrar;.onDestroy (Landroid/content/Context;)V
11-27 11:16:24.064: D/dalvikvm(913): VFY: replacing opcode 0x71 at 0x000f
11-27 11:16:24.394: D/AndroidRuntime(913): Shutting down VM
11-27 11:16:24.404: W/dalvikvm(913): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
11-27 11:16:24.484: E/AndroidRuntime(913): FATAL EXCEPTION: main
11-27 11:16:24.484: E/AndroidRuntime(913): java.lang.NoClassDefFoundError: com.google.android.gcm.GCMRegistrar
11-27 11:16:24.484: E/AndroidRuntime(913): at com.androidhive.pushnotifications.MainActivity.onCreate(MainActivity.java:59)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.Activity.performCreate(Activity.java:5104)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.ActivityThread.access$600(ActivityThread.java:141)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.os.Looper.loop(Looper.java:137)
11-27 11:16:24.484: E/AndroidRuntime(913): at android.app.ActivityThread.main(ActivityThread.java:5041)
11-27 11:16:24.484: E/AndroidRuntime(913): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 11:16:24.484: E/AndroidRuntime(913): at java.lang.reflect.Method.invoke(Method.java:511)
11-27 11:16:24.484: E/AndroidRuntime(913): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-27 11:16:24.484: E/AndroidRuntime(913): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
11-27 11:16:24.484: E/AndroidRuntime(913): at dalvik.system.NativeStart.main(Native Method)
11-27 11:21:24.635: I/Process(913): Sending signal. PID: 913 SIG: 9
11-27 11:31:23.594: E/Trace(1311): error opening trace file: No such file or directory (2)
11-27 11:31:24.385: I/Choreographer(1311): Skipped 53 frames! The application may be doing too much work on its main thread.
11-27 11:31:24.454: D/gralloc_goldfish(1311): Emulator without GPU emulation detected.
11-27 11:31:25.488: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:31:27.606: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:31:28.708: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:31:29.264: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:31:30.398: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:31:32.590: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:31:35.235: I/Choreographer(1311): Skipped 103 frames! The application may be doing too much work on its main thread.
11-27 11:31:36.295: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:31:36.875: I/Choreographer(1311): Skipped 148 frames! The application may be doing too much work on its main thread.
11-27 11:31:40.458: I/Choreographer(1311): Skipped 92 frames! The application may be doing too much work on its main thread.
11-27 11:31:42.064: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:31:43.116: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:31:43.629: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:31:44.166: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:31:46.287: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:31:47.344: I/Choreographer(1311): Skipped 98 frames! The application may be doing too much work on its main thread.
11-27 11:31:48.396: I/Choreographer(1311): Skipped 88 frames! The application may be doing too much work on its main thread.
11-27 11:31:49.486: I/Choreographer(1311): Skipped 88 frames! The application may be doing too much work on its main thread.
11-27 11:31:50.076: I/Choreographer(1311): Skipped 95 frames! The application may be doing too much work on its main thread.
11-27 11:31:51.190: I/Choreographer(1311): Skipped 97 frames! The application may be doing too much work on its main thread.
11-27 11:31:51.686: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:31:57.468: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:31:58.479: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:32:01.720: I/Choreographer(1311): Skipped 86 frames! The application may be doing too much work on its main thread.
11-27 11:32:02.269: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:32:03.344: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:32:05.441: I/Choreographer(1311): Skipped 86 frames! The application may be doing too much work on its main thread.
11-27 11:32:06.005: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:32:07.055: I/Choreographer(1311): Skipped 103 frames! The application may be doing too much work on its main thread.
11-27 11:32:13.433: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:32:13.996: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:32:14.524: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:32:15.586: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:32:18.745: I/Choreographer(1311): Skipped 90 frames! The application may be doing too much work on its main thread.
11-27 11:32:21.374: I/Choreographer(1311): Skipped 92 frames! The application may be doing too much work on its main thread.
11-27 11:32:22.457: I/Choreographer(1311): Skipped 92 frames! The application may be doing too much work on its main thread.
11-27 11:32:23.114: I/Choreographer(1311): Skipped 169 frames! The application may be doing too much work on its main thread.
11-27 11:32:23.614: I/Choreographer(1311): Skipped 96 frames! The application may be doing too much work on its main thread.
11-27 11:32:24.184: I/Choreographer(1311): Skipped 77 frames! The application may be doing too much work on its main thread.
11-27 11:32:25.338: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:32:26.884: I/Choreographer(1311): Skipped 44 frames! The application may be doing too much work on its main thread.
11-27 11:32:27.114: I/Choreographer(1311): Skipped 151 frames! The application may be doing too much work on its main thread.
11-27 11:32:28.234: D/InputEventConsistencyVerifier(1311): KeyEvent: ACTION_UP but key was not down.
11-27 11:32:28.234: D/InputEventConsistencyVerifier(1311): in android.widget.EditText{40d0e9c8 VFED..CL .F....I. 8,99-232,129 #7f080002 app:id/txtEmail}
11-27 11:32:28.234: D/InputEventConsistencyVerifier(1311): 0: sent at 1118162000000, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_TAB, scanCode=15, metaState=0, flags=0x8, repeatCount=0, eventTime=1118162, downTime=1117979, deviceId=0, source=0x101 }
11-27 11:32:28.234: D/InputEventConsistencyVerifier(1311): -- recent events --
11-27 11:32:28.234: D/InputEventConsistencyVerifier(1311): 1: sent at 1112966368000, MotionEvent { action=ACTION_UP, id[0]=0, x[0]=51.0, y[0]=14.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1112966, downTime=1112882, deviceId=0, source=0x1002 }
11-27 11:32:28.234: D/InputEventConsistencyVerifier(1311): 2: sent at 1112882632000, MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=51.0, y[0]=14.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1112882, downTime=1112882, deviceId=0, source=0x1002 }
11-27 11:32:28.404: D/dalvikvm(1311): GC_CONCURRENT freed 197K, 12% free 2555K/2896K, paused 99ms+4ms, total 166ms
11-27 11:32:28.624: I/Choreographer(1311): Skipped 106 frames! The application may be doing too much work on its main thread.
11-27 11:32:29.094: I/Choreographer(1311): Skipped 30 frames! The application may be doing too much work on its main thread.
11-27 11:32:29.268: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:32:30.686: I/Choreographer(1311): Skipped 135 frames! The application may be doing too much work on its main thread.
11-27 11:32:32.865: I/Choreographer(1311): Skipped 122 frames! The application may be doing too much work on its main thread.
11-27 11:32:33.555: I/Choreographer(1311): Skipped 35 frames! The application may be doing too much work on its main thread.
11-27 11:32:34.355: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:32:34.874: I/Choreographer(1311): Skipped 91 frames! The application may be doing too much work on its main thread.
11-27 11:32:38.534: I/Choreographer(1311): Skipped 87 frames! The application may be doing too much work on its main thread.
11-27 11:32:39.054: I/Choreographer(1311): Skipped 93 frames! The application may be doing too much work on its main thread.
11-27 11:32:39.555: I/Choreographer(1311): Skipped 60 frames! The application may be doing too much work on its main thread.
11-27 11:32:39.635: I/dalvikvm(1311): Could not find method com.google.android.gcm.GCMRegistrar.checkDevice, referenced from method com.androidhive.pushnotifications.MainActivity.onCreate
11-27 11:32:39.635: W/dalvikvm(1311): VFY: unable to resolve static method 110: Lcom/google/android/gcm/GCMRegistrar;.checkDevice (Landroid/content/Context;)V
11-27 11:32:39.635: D/dalvikvm(1311): VFY: replacing opcode 0x71 at 0x0040
11-27 11:32:39.635: I/dalvikvm(1311): Could not find method com.google.android.gcm.GCMRegistrar.onDestroy, referenced from method com.androidhive.pushnotifications.MainActivity.onDestroy
11-27 11:32:39.644: W/dalvikvm(1311): VFY: unable to resolve static method 114: Lcom/google/android/gcm/GCMRegistrar;.onDestroy (Landroid/content/Context;)V
11-27 11:32:39.644: D/dalvikvm(1311): VFY: replacing opcode 0x71 at 0x000f
11-27 11:32:40.015: D/AndroidRuntime(1311): Shutting down VM
11-27 11:32:40.025: W/dalvikvm(1311): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
11-27 11:32:40.084: E/AndroidRuntime(1311): FATAL EXCEPTION: main
11-27 11:32:40.084: E/AndroidRuntime(1311): java.lang.NoClassDefFoundError: com.google.android.gcm.GCMRegistrar
11-27 11:32:40.084: E/AndroidRuntime(1311): at com.androidhive.pushnotifications.MainActivity.onCreate(MainActivity.java:59)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.Activity.performCreate(Activity.java:5104)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.ActivityThread.access$600(ActivityThread.java:141)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.os.Looper.loop(Looper.java:137)
11-27 11:32:40.084: E/AndroidRuntime(1311): at android.app.ActivityThread.main(ActivityThread.java:5041)
11-27 11:32:40.084: E/AndroidRuntime(1311): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 11:32:40.084: E/AndroidRuntime(1311): at java.lang.reflect.Method.invoke(Method.java:511)
11-27 11:32:40.084: E/AndroidRuntime(1311): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-27 11:32:40.084: E/AndroidRuntime(1311): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
11-27 11:32:40.084: E/AndroidRuntime(1311): at dalvik.system.NativeStart.main(Native Method)
11-27 11:32:46.704: I/Process(1311): Sending signal. PID: 1311 SIG: 9
warnings
Description Resource Path Location Type
The method setLatestEventInfo(Context, CharSequence, CharSequence, PendingIntent) from the type Notification is deprecated GCMIntentService.java /AndroidPushNotificationsUsingGCM/src/com/androidhive/pushnotifications line 104 Java Problem
The method setButton(CharSequence, DialogInterface.OnClickListener) from the type AlertDialog is deprecated AlertDialogManager.java /AndroidPushNotificationsUsingGCM/src/com/androidhive/pushnotifications line 31 Java Problem
The constructor Notification(int, CharSequence, long) is deprecated GCMIntentService.java /AndroidPushNotificationsUsingGCM/src/com/androidhive/pushnotifications line 94 Java Problem
The field PowerManager.FULL_WAKE_LOCK is deprecated WakeLocker.java /AndroidPushNotificationsUsingGCM/src/com/androidhive/pushnotifications line 13 Java Problem
Please help

Related

how to do Implementation of Android TvView

I have started working on Android Smart Tv. I have to make a TvView, I Know Leanback is only library which gives us a lot of stuff to work with Android Smart Tv. Last day i have tried to work with TvView to perform streaming of channels. I have included android-support-Leanback17 . but still i am getting error That no class definition found. Any Help will be appreciated . i Just want to know that which library support this TvView.
Thanks in Advance
This is my LogCat
11-27 09:25:10.684: E/AndroidRuntime(16203): FATAL EXCEPTION: main
11-27 09:25:10.684: E/AndroidRuntime(16203): java.lang.NoClassDefFoundError: android.media.tv.TvView
11-27 09:25:10.684: E/AndroidRuntime(16203): at com.example.tvtest.MainActivity.onCreate(MainActivity.java:25)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.Activity.performCreate(Activity.java:5104)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.ActivityThread.access$600(ActivityThread.java:141)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.os.Looper.loop(Looper.java:137)
11-27 09:25:10.684: E/AndroidRuntime(16203): at android.app.ActivityThread.main(ActivityThread.java:5041)
11-27 09:25:10.684: E/AndroidRuntime(16203): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 09:25:10.684: E/AndroidRuntime(16203): at java.lang.reflect.Method.invoke(Method.java:511)
11-27 09:25:10.684: E/AndroidRuntime(16203): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
11-27 09:25:10.684: E/AndroidRuntime(16203): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596)
11-27 09:25:10.684: E/AndroidRuntime(16203): at dalvik.system.NativeStart.main(Native Method)
I'm assuming you want to allow users to watch content and if so, you will not actually implement a TVView. Google provides the 'Live Channels' app which will display channels provided via the TVInputFramework. This app is hidden until an app implementing the TVInputFramework is installed.
Google has now released a sample app implementing the TVInputFramework which will publish channels that can be watched in the Live Channels app.
Documentation outlining the TVInputFramework:
http://developer.android.com/training/tv/tif/index.html
I hope this will at least point you in the right direction even if it doesn't directly answer your question.
I would suggest everyone to go for this Google sample or implementation for Android TvView:
https://android.googlesource.com/platform/packages/apps/TV/
It is possible to add TVVIEw component to your application like this
> <android.media.tv.TvView
> android:id="#+id/dtv_view"
> android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:visibility="visible" />
And it is possible to tune to particular channgel using below code
String channelUrl="content://android.media.tv/channel/"+channelNumber;
mTvView.tune(mInputId, Uri.parse(channelUrl));
input id is available in TV database(refering to which source channel is coming from).
If you pass these info to tvview it will start playing.

I created my own package but couln't use functions from my own package

I created my own package by copying files from different packages, I tried to send message using that package by my program abnormally terminate and the following errors appear.
04-10 04:57:02.910: I/Choreographer(781): Skipped 40 frames! The application may be doing too much work on its main thread.
04-10 04:57:03.014: D/gralloc_goldfish(781): Emulator without GPU emulation detected.
04-10 04:57:03.957: I/Choreographer(781): Skipped 43 frames! The application may be doing too much work on its main thread.
04-10 04:57:04.524: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:05.060: I/Choreographer(781): Skipped 52 frames! The application may be doing too much work on its main thread.
04-10 04:57:05.574: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:07.147: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:07.680: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:08.771: I/Choreographer(781): Skipped 53 frames! The application may be doing too much work on its main thread.
04-10 04:57:09.310: I/Choreographer(781): Skipped 43 frames! The application may be doing too much work on its main thread.
04-10 04:57:09.860: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:10.390: I/Choreographer(781): Skipped 50 frames! The application may be doing too much work on its main thread.
04-10 04:57:10.921: I/Choreographer(781): Skipped 45 frames! The application may be doing too much work on its main thread.
04-10 04:57:11.504: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:12.022: I/Choreographer(781): Skipped 45 frames! The application may be doing too much work on its main thread.
04-10 04:57:12.554: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:13.611: I/Choreographer(781): Skipped 47 frames! The application may be doing too much work on its main thread.
04-10 04:57:14.671: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:15.190: I/Choreographer(781): Skipped 45 frames! The application may be doing too much work on its main thread.
04-10 04:57:15.716: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:16.234: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:17.290: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:17.831: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:18.350: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:18.872: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:19.450: I/Choreographer(781): Skipped 70 frames! The application may be doing too much work on its main thread.
04-10 04:57:19.917: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:20.987: I/Choreographer(781): Skipped 43 frames! The application may be doing too much work on its main thread.
04-10 04:57:22.031: I/Choreographer(781): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 04:57:23.840: I/Choreographer(781): Skipped 41 frames! The application may be doing too much work on its main thread.
04-10 04:57:25.824: I/Choreographer(781): Skipped 45 frames! The application may be doing too much work on its main thread.
04-10 04:57:27.260: W/dalvikvm(781): No implementation found for native Loss/BinderInternal;.getContextObject:()Landroid/os/IBinder;
04-10 04:57:27.270: D/AndroidRuntime(781): Shutting down VM
04-10 04:57:27.270: W/dalvikvm(781): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
04-10 04:57:27.320: E/AndroidRuntime(781): FATAL EXCEPTION: main
04-10 04:57:27.320: E/AndroidRuntime(781): java.lang.UnsatisfiedLinkError: Native method not found: oss.BinderInternal.getContextObject:()Landroid/os/IBinder;
04-10 04:57:27.320: E/AndroidRuntime(781): at oss.BinderInternal.getContextObject(Native Method)
04-10 04:57:27.320: E/AndroidRuntime(781): at oss.ServiceManager.getIServiceManager(ServiceManager.java:39)
04-10 04:57:27.320: E/AndroidRuntime(781): at oss.ServiceManager.getService(ServiceManager.java:55)
04-10 04:57:27.320: E/AndroidRuntime(781): at oss.SmsManager.sendRawPdu(SmsManager.java:242)
04-10 04:57:27.320: E/AndroidRuntime(781): at oss.SmsManager.sendTextMessage(SmsManager.java:69)
04-10 04:57:27.320: E/AndroidRuntime(781): at com.sms.projectsms.MainActivity.onClick(MainActivity.java:37)
04-10 04:57:27.320: E/AndroidRuntime(781): at android.view.View.performClick(View.java:4204)
04-10 04:57:27.320: E/AndroidRuntime(781): at android.view.View$PerformClick.run(View.java:17355)
04-10 04:57:27.320: E/AndroidRuntime(781): at android.os.Handler.handleCallback(Handler.java:725)
04-10 04:57:27.320: E/AndroidRuntime(781): at android.os.Handler.dispatchMessage(Handler.java:92)
04-10 04:57:27.320: E/AndroidRuntime(781): at android.os.Looper.loop(Looper.java:137)
04-10 04:57:27.320: E/AndroidRuntime(781): at android.app.ActivityThread.main(ActivityThread.java:5041)
04-10 04:57:27.320: E/AndroidRuntime(781): at java.lang.reflect.Method.invokeNative(Native Method)
04-10 04:57:27.320: E/AndroidRuntime(781): at java.lang.reflect.Method.invoke(Method.java:511)
04-10 04:57:27.320: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-10 04:57:27.320: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-10 04:57:27.320: E/AndroidRuntime(781): at dalvik.system.NativeStart.main(Native Method)
04-10 04:57:32.960: I/Process(781): Sending signal. PID: 781 SIG: 9
04-10 05:23:06.260: I/Choreographer(928): Skipped 63 frames! The application may be doing too much work on its main thread.
04-10 05:23:06.390: D/gralloc_goldfish(928): Emulator without GPU emulation detected.
04-10 05:23:07.340: I/Choreographer(928): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 05:23:07.850: I/Choreographer(928): Skipped 48 frames! The application may be doing too much work on its main thread.
04-10 05:23:09.440: I/Choreographer(928): Skipped 35 frames! The application may be doing too much work on its main thread.
04-10 05:23:10.560: I/Choreographer(928): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 05:23:11.097: I/Choreographer(928): Skipped 44 frames! The application may be doing too much work on its main thread.
04-10 05:23:11.731: W/dalvikvm(928): No implementation found for native Loss/BinderInternal;.getContextObject:()Landroid/os/IBinder;
04-10 05:23:11.731: D/AndroidRuntime(928): Shutting down VM
04-10 05:23:11.741: W/dalvikvm(928): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
04-10 05:23:11.781: E/AndroidRuntime(928): FATAL EXCEPTION: main
04-10 05:23:11.781: E/AndroidRuntime(928): java.lang.UnsatisfiedLinkError: Native method not found: oss.BinderInternal.getContextObject:()Landroid/os/IBinder;
04-10 05:23:11.781: E/AndroidRuntime(928): at oss.BinderInternal.getContextObject(Native Method)
04-10 05:23:11.781: E/AndroidRuntime(928): at oss.ServiceManager.getIServiceManager(ServiceManager.java:39)
04-10 05:23:11.781: E/AndroidRuntime(928): at oss.ServiceManager.getService(ServiceManager.java:55)
04-10 05:23:11.781: E/AndroidRuntime(928): at oss.SmsManager.sendRawPdu(SmsManager.java:242)
04-10 05:23:11.781: E/AndroidRuntime(928): at oss.SmsManager.sendTextMessage(SmsManager.java:69)
04-10 05:23:11.781: E/AndroidRuntime(928): at com.sms.projectsms.MainActivity.onClick(MainActivity.java:37)
04-10 05:23:11.781: E/AndroidRuntime(928): at android.view.View.performClick(View.java:4204)
04-10 05:23:11.781: E/AndroidRuntime(928): at android.view.View$PerformClick.run(View.java:17355)
04-10 05:23:11.781: E/AndroidRuntime(928): at android.os.Handler.handleCallback(Handler.java:725)
04-10 05:23:11.781: E/AndroidRuntime(928): at android.os.Handler.dispatchMessage(Handler.java:92)
04-10 05:23:11.781: E/AndroidRuntime(928): at android.os.Looper.loop(Looper.java:137)
04-10 05:23:11.781: E/AndroidRuntime(928): at android.app.ActivityThread.main(ActivityThread.java:5041)
04-10 05:23:11.781: E/AndroidRuntime(928): at java.lang.reflect.Method.invokeNative(Native Method)
04-10 05:23:11.781: E/AndroidRuntime(928): at java.lang.reflect.Method.invoke(Method.java:511)
04-10 05:23:11.781: E/AndroidRuntime(928): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-10 05:23:11.781: E/AndroidRuntime(928): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-10 05:23:11.781: E/AndroidRuntime(928): at dalvik.system.NativeStart.main(Native Method)
04-10 05:23:17.080: I/Process(928): Sending signal. PID: 928 SIG: 9

Browser Stopped in android

I am new to android coding. I am trying a simple code like clicking a button, and if clicked it opens Google. If I run my code, and if I click the button, the browser opens, and after sometime, it displays UNFORTUNATELY BROWSER STOPPED. please help me. thanks in advance.
package com.example.single_button_google;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
public class MainActivity extends Activity {
Button b1;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
b1= (Button) findViewById(R.id.button1);
b1.setOnClickListener(click);
}
View.OnClickListener click = new View.OnClickListener() {
#Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("https://www.google.co.in/"));
startActivity(intent);
}
};
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
My logcat:
02-04 04:50:19.910: D/AndroidRuntime(1174): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
02-04 04:50:19.920: D/AndroidRuntime(1174): CheckJNI is ON
02-04 04:50:20.000: D/dalvikvm(1174): Trying to load lib libjavacore.so 0x0
02-04 04:50:20.010: D/dalvikvm(1174): Added shared lib libjavacore.so 0x0
02-04 04:50:20.040: D/dalvikvm(1174): Trying to load lib libnativehelper.so 0x0
02-04 04:50:20.040: D/dalvikvm(1174): Added shared lib libnativehelper.so 0x0
02-04 04:50:20.050: D/dalvikvm(1174): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
02-04 04:50:20.270: D/dalvikvm(1174): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
02-04 04:50:20.840: E/memtrack(1174): Couldn't load memtrack module (No such file or directory)
02-04 04:50:20.840: E/android.os.Debug(1174): failed to load memtrack module: -2
02-04 04:50:21.200: D/AndroidRuntime(1174): Calling main entry com.android.commands.pm.Pm
02-04 04:50:21.240: D/AndroidRuntime(1174): Shutting down VM
02-04 04:50:21.240: D/dalvikvm(1174): Debugger has detached; object registry had 1 entries
02-04 04:50:22.040: D/AndroidRuntime(1185): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
02-04 04:50:22.050: D/AndroidRuntime(1185): CheckJNI is ON
02-04 04:50:22.120: D/dalvikvm(1185): Trying to load lib libjavacore.so 0x0
02-04 04:50:22.130: D/dalvikvm(1185): Added shared lib libjavacore.so 0x0
02-04 04:50:22.160: D/dalvikvm(1185): Trying to load lib libnativehelper.so 0x0
02-04 04:50:22.160: D/dalvikvm(1185): Added shared lib libnativehelper.so 0x0
02-04 04:50:22.160: D/dalvikvm(1185): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
02-04 04:50:22.380: D/dalvikvm(1185): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
02-04 04:50:22.960: E/memtrack(1185): Couldn't load memtrack module (No such file or directory)
02-04 04:50:22.960: E/android.os.Debug(1185): failed to load memtrack module: -2
02-04 04:50:23.290: D/AndroidRuntime(1185): Calling main entry com.android.commands.am.Am
02-04 04:50:23.380: I/ActivityManager(363): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.single_button_google/.MainActivity} from pid 1185
02-04 04:50:23.410: D/AndroidRuntime(1185): Shutting down VM
02-04 04:50:23.420: D/jdwp(1185): Got wake-up signal, bailing out of select
02-04 04:50:23.420: D/dalvikvm(1185): Debugger has detached; object registry had 1 entries
02-04 04:50:23.930: W/ActivityManager(363): Activity pause timeout for ActivityRecord{b4f82e48 u0 com.android.browser/.BrowserActivity t8}
02-04 04:50:24.000: W/InputMethodManagerService(363): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b505f218 attribute=null, token = android.os.BinderProxy#b51975c8
02-04 04:50:24.100: I/Choreographer(363): Skipped 51 frames! The application may be doing too much work on its main thread.
02-04 04:50:24.190: I/Choreographer(363): Skipped 58 frames! The application may be doing too much work on its main thread.
02-04 04:50:24.390: I/Choreographer(363): Skipped 48 frames! The application may be doing too much work on its main thread.
02-04 04:50:24.440: I/Choreographer(899): Skipped 288 frames! The application may be doing too much work on its main thread.
02-04 04:50:24.640: I/Choreographer(363): Skipped 50 frames! The application may be doing too much work on its main thread.
02-04 04:50:24.970: I/Choreographer(363): Skipped 52 frames! The application may be doing too much work on its main thread.
02-04 04:50:25.370: I/Choreographer(363): Skipped 51 frames! The application may be doing too much work on its main thread.
02-04 04:50:25.480: I/Choreographer(363): Skipped 58 frames! The application may be doing too much work on its main thread.
02-04 04:50:25.570: I/Choreographer(363): Skipped 54 frames! The application may be doing too much work on its main thread.
02-04 04:50:25.680: I/Choreographer(363): Skipped 69 frames! The application may be doing too much work on its main thread.
02-04 04:50:25.810: I/Choreographer(363): Skipped 72 frames! The application may be doing too much work on its main thread.
02-04 04:50:34.460: E/NativeDaemonConnector.ResponseQueue(363): Timeout waiting for response
02-04 04:50:34.460: E/VoldConnector(363): timed-out waiting for response to 12 volume mkdirs /storage/sdcard/Android/data/com.android.browser/files/
02-04 04:50:34.460: D/AndroidRuntime(1157): Shutting down VM
02-04 04:50:34.460: W/dalvikvm(1157): threadid=1: thread exiting with uncaught exception (group=0xb4adab90)
02-04 04:50:34.490: E/AndroidRuntime(1157): FATAL EXCEPTION: main
02-04 04:50:34.490: E/AndroidRuntime(1157): Process: com.android.browser, PID: 1157
02-04 04:50:34.490: E/AndroidRuntime(1157): java.lang.RuntimeException: Unable to get provider com.android.browser.provider.SnapshotProvider: java.lang.NullPointerException
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread.installProvider(ActivityThread.java:4774)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4366)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4306)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread.access$1400(ActivityThread.java:135)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1457)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.os.Handler.dispatchMessage(Handler.java:102)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.os.Looper.loop(Looper.java:137)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread.main(ActivityThread.java:4998)
02-04 04:50:34.490: E/AndroidRuntime(1157): at java.lang.reflect.Method.invokeNative(Native Method)
02-04 04:50:34.490: E/AndroidRuntime(1157): at java.lang.reflect.Method.invoke(Method.java:515)
02-04 04:50:34.490: E/AndroidRuntime(1157): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
02-04 04:50:34.490: E/AndroidRuntime(1157): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
02-04 04:50:34.490: E/AndroidRuntime(1157): at dalvik.system.NativeStart.main(Native Method)
02-04 04:50:34.490: E/AndroidRuntime(1157): Caused by: java.lang.NullPointerException
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.os.Parcel.readException(Parcel.java:1467)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.os.Parcel.readException(Parcel.java:1415)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.os.storage.IMountService$Stub$Proxy.mkdirs(IMountService.java:750)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ContextImpl.ensureDirsExistOrFilter(ContextImpl.java:2160)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ContextImpl.getExternalFilesDirs(ContextImpl.java:856)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ContextImpl.getExternalFilesDir(ContextImpl.java:839)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.content.ContextWrapper.getExternalFilesDir(ContextWrapper.java:210)
02-04 04:50:34.490: E/AndroidRuntime(1157): at com.android.browser.provider.SnapshotProvider.getOldDatabasePath(SnapshotProvider.java:116)
02-04 04:50:34.490: E/AndroidRuntime(1157): at com.android.browser.provider.SnapshotProvider.migrateToDataFolder(SnapshotProvider.java:123)
02-04 04:50:34.490: E/AndroidRuntime(1157): at com.android.browser.provider.SnapshotProvider.onCreate(SnapshotProvider.java:137)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.content.ContentProvider.attachInfo(ContentProvider.java:1589)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.content.ContentProvider.attachInfo(ContentProvider.java:1560)
02-04 04:50:34.490: E/AndroidRuntime(1157): at android.app.ActivityThread.installProvider(ActivityThread.java:4771)
02-04 04:50:34.490: E/AndroidRuntime(1157): ... 12 more
02-04 04:50:34.660: I/Choreographer(363): Skipped 45 frames! The application may be doing too much work on its main thread.
02-04 04:50:34.910: I/Choreographer(363): Skipped 64 frames! The application may be doing too much work on its main thread.
02-04 04:50:35.020: I/Choreographer(363): Skipped 65 frames! The application may be doing too much work on its main thread.
02-04 04:50:35.130: I/Choreographer(363): Skipped 64 frames! The application may be doing too much work on its main thread.
02-04 04:50:36.050: W/ActivityManager(363): Activity stop timeout for ActivityRecord{b4f82e48 u0 com.android.browser/.BrowserActivity t8}
Seems to be a problem related to the emulator and the SD card. Try to change some configuration on your emulator or try the app on a real device.

pointing the error message in the following log snippet

Ok below here is what my log generates when I try to run my application . The application fails unexpectedly and does not even start
09-02 04:28:51.856: D/dalvikvm(781): GC_FOR_ALLOC freed 66K, 7% free 2542K/2728K, paused 51ms, total 66ms
09-02 04:28:51.866: I/dalvikvm-heap(781): Grow heap (frag case) to 3.181MB for 614500-byte allocation
09-02 04:28:51.936: D/dalvikvm(781): GC_FOR_ALLOC freed <1K, 6% free 3142K/3332K, paused 67ms, total 67ms
09-02 04:28:52.406: W/SoundPool(781): sample 1 not READY
09-02 04:28:53.116: D/gralloc_goldfish(781): Emulator without GPU emulation detected.
09-02 04:28:53.376: I/Choreographer(781): Skipped 33 frames! The application may be doing too much work on its main thread.
09-02 04:29:22.606: E/AudioTrack(781): Could not get audio output for stream type 3
09-02 04:29:22.606: E/SoundPool(781): Error creating AudioTrack
09-02 04:29:22.756: D/dalvikvm(781): GC_FOR_ALLOC freed 30K, 5% free 3523K/3672K, paused 19ms, total 21ms
09-02 04:29:22.756: I/dalvikvm-heap(781): Grow heap (frag case) to 4.159MB for 635812-byte allocation
09-02 04:29:22.856: D/dalvikvm(781): GC_FOR_ALLOC freed 1K, 4% free 4143K/4296K, paused 97ms, total 97ms
09-02 04:29:22.966: I/Choreographer(781): Skipped 91 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.206: I/Choreographer(781): Skipped 55 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.375: I/Choreographer(781): Skipped 35 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.776: I/Choreographer(781): Skipped 79 frames! The application may be doing too much work on its main thread.
09-02 04:29:28.016: D/dalvikvm(781): GC_FOR_ALLOC freed 108K, 5% free 4436K/4664K, paused 111ms, total 133ms
09-02 04:29:28.045: I/dalvikvm-heap(781): Grow heap (frag case) to 5.030MB for 614500-byte allocation
09-02 04:29:28.096: D/dalvikvm(781): GC_FOR_ALLOC freed 1K, 5% free 5034K/5268K, paused 55ms, total 56ms
09-02 04:29:28.235: W/SoundPool(781): sample 1 not READY
09-02 04:29:28.785: I/Choreographer(781): Skipped 50 frames! The application may be doing too much work on its main thread.
09-02 04:29:31.626: E/AudioTrack(781): Could not get audio output for stream type 3
09-02 04:29:31.626: E/SoundPool(781): Error creating AudioTrack
09-02 04:29:31.746: E/SlaveBlueTooth(781): +++ ON CREATE +++
09-02 04:29:31.766: W/System.err(781): java.io.IOException: open failed: EROFS (Read-only file system)
09-02 04:29:31.776: W/System.err(781): at java.io.File.createNewFile(File.java:948)
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
09-02 04:29:31.796: W/System.err(781): at android.app.Activity.performCreate(Activity.java:5133)
09-02 04:29:31.796: W/System.err(781): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-02 04:29:31.796: W/System.err(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-02 04:29:31.826: W/System.err(781): at android.os.Handler.dispatchMessage(Handler.java:99)
09-02 04:29:31.826: W/System.err(781): at android.os.Looper.loop(Looper.java:137)
09-02 04:29:31.826: W/System.err(781): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-02 04:29:31.836: W/System.err(781): at java.lang.reflect.Method.invokeNative(Native Method)
09-02 04:29:31.836: W/System.err(781): at java.lang.reflect.Method.invoke(Method.java:525)
09-02 04:29:31.846: W/System.err(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-02 04:29:31.846: W/System.err(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-02 04:29:31.856: W/System.err(781): at dalvik.system.NativeStart.main(Native Method)
09-02 04:29:31.856: W/System.err(781): Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only file system)
09-02 04:29:31.876: W/System.err(781): at libcore.io.Posix.open(Native Method)
09-02 04:29:31.886: W/System.err(781): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
09-02 04:29:31.886: W/System.err(781): at java.io.File.createNewFile(File.java:941)
09-02 04:29:31.896: W/System.err(781): ... 15 more
09-02 04:29:32.016: D/AndroidRuntime(781): Shutting down VM
09-02 04:29:32.016: W/dalvikvm(781): threadid=1: thread exiting with uncaught exception (group=0x41465700)
09-02 04:29:32.066: E/AndroidRuntime(781): FATAL EXCEPTION: main
09-02 04:29:32.066: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.BTSmartSlavemodule}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.os.Handler.dispatchMessage(Handler.java:99)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.os.Looper.loop(Looper.java:137)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-02 04:29:32.066: E/AndroidRuntime(781): at java.lang.reflect.Method.invokeNative(Native Method)
09-02 04:29:32.066: E/AndroidRuntime(781): at java.lang.reflect.Method.invoke(Method.java:525)
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-02 04:29:32.066: E/AndroidRuntime(781): at dalvik.system.NativeStart.main(Native Method)
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:226)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.requestWindowFeature(Activity.java:3264)
09-02 04:29:32.066: E/AndroidRuntime(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:141)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.performCreate(Activity.java:5133)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-02 04:29:32.066: E/AndroidRuntime(781): ... 11 more
This is the error from your LogCat :
FATAL EXCEPTION: main
09-02 04:29:32.066: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.BTSmartSlavemodule}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
Multiple issues here:
09-02 04:29:31.766: W/System.err(781): java.io.IOException: open failed: EROFS (Read-only file system)
09-02 04:29:31.776: W/System.err(781): at java.io.File.createNewFile(File.java:948)
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
In BTSmartSlavemodule.java line 118 you're trying to create a new file on a read-only file system.
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:226)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.requestWindowFeature(Activity.java:3264)
09-02 04:29:32.066: E/AndroidRuntime(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:141)
On line 141 of the same file you're trying to call requestWindowFeature() after calling setContentView(). You need to set window features before setContentView().
You call requestFeature() not in right place... try to call this method before setContentView(R.layout.activity)
The cause of this error is :
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
And this cause happened at :
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
Where you put code .requestWindowFeature(). To avoid this cause you must put this code before setContentView(R.layout.your_layout);
I think you are trying to create file on sdcard but you don't have specified permission to write external storage in manifest file
Add this line to manifest.xml file
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

app runs on one device but not another

FIXED
For some reason the special menu i created was killing it... THere was no API's or anything in that class. But thanks for the support guys
So this really isnt a question about a code but a very random error...
My app runs perfectly on my Nexus S rooted, but when it runs on any other phone or the emulator it will instantly FC.
The app does have root permissions but only if you choose to use it. Otherwise it is just a normal application.
Does anyone have a solution to why it would run on one device but not another?
-EDIT-
11-27 17:28:37.734: E/AndroidRuntime(7104): FATAL EXCEPTION: main
11-27 17:28:37.734: E/AndroidRuntime(7104): java.lang.VerifyError: com.SyndicateApps.OmegaLauncher.Launcher
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.Class.newInstanceImpl(Native Method)
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.Class.newInstance(Class.java:1429)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.Instrumentation.newActivity(Instrumentation.java:1056)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2752)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.access$2300(ActivityThread.java:136)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2179)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.os.Looper.loop(Looper.java:143)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.main(ActivityThread.java:5073)
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.reflect.Method.invoke(Method.java:521)
11-27 17:28:37.734: E/AndroidRuntime(7104): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-27 17:28:37.734: E/AndroidRuntime(7104): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-27 17:28:37.734: E/AndroidRuntime(7104): at dalvik.system.NativeStart.main(Native Method)
EDIT 2 -
So its on 2.2 but same problem... Is there a way i can find the class using the api level 9?
LOGCAT 2 (on android 2.2)
EDIT 2 / SECOND LOGCAT ON 2.2 EMULATOR -
11-27 18:56:12.159: E/AndroidRuntime(258): FATAL EXCEPTION: main
11-27 18:56:12.159: E/AndroidRuntime(258): java.lang.VerifyError: com.SyndicateApps.OmegaLauncher.Launcher
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.Class.newInstanceImpl(Native Method)
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.Class.newInstance(Class.java:1429)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.os.Looper.loop(Looper.java:123)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.main(ActivityThread.java:4627)
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.reflect.Method.invoke(Method.java:521)
11-27 18:56:12.159: E/AndroidRuntime(258): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-27 18:56:12.159: E/AndroidRuntime(258): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-27 18:56:12.159: E/AndroidRuntime(258): at dalvik.system.NativeStart.main(Native Method)
A lot of the errors are when it comes to this... --> (new DialogInterface.OnShowListener()
java.lang.VerifyError typically means you're using a class or method that's not available on the current Java VM. Which Android version is on Nexus and which is on the other device? Android app manifest system allows for compiling against, say, API level 10 while allowing running against API level 6. There will be no warning against using backwards-incompatible classes until you run.
EDIT: So apparently the class com.SyndicateApps.OmegaLauncher.Launcher uses some API that was introduced in level 9. In the project properties, under "Android", set build target (temporarily) to Android 2.2 and see where the errors occur.
EDIT2: if the static analysis fails, try commenting out method insides in the class, method by method, until it loads. VerifyError is fairly easy to debug that way - it's triggered by very existence of faulty code in the class, not by its invokation. It's not like you have to do 100% coverage analysis.

Categories

Resources