> instead of creating the intent and starting the activity, just do nothing.
> -->> didnt crash.
> If that doesn't crash, construct the intent as before (but don't start the
> activity yet). If that is OK, pop up a message with Toast after creating the
> intent (so we are hopefully taking the focus away from the tab layout
> briefly).
yes, pop up message was shown successfully.
>
> If all of that is OK, try creating a dummy activity of your own with a
> button, and have the intent use *that* class (and start the activity) -
didnt work, application crashed.
LogCat:
05-09 17:08:39.082: D/AndroidRuntime(13361): Shutting down VM
05-09 17:08:39.091: W/dalvikvm(13361): threadid=3: thread exiting with
uncaught exception (group=0x4001b188)
05-09 17:08:39.091: E/AndroidRuntime(13361): Uncaught handler: thread
main exiting due to uncaught exception
05-09 17:08:39.101: E/AndroidRuntime(13361):
android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.m2.smartGui/com.m2.smartGui.dummyActivity}; have
you declared this activity in your AndroidManifest.xml?
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:
1404)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1378)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.app.Activity.startActivityForResult(Activity.java:2749)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:
689)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.support.v4.app.Fragment.startActivityForResult(Fragment.java:
794)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
com.m2.smartGui.RecordActivity$Recordings
$3.onItemClick(RecordActivity.java:201)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.widget.AdapterView.performItemClick(AdapterView.java:284)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.widget.ListView.performItemClick(ListView.java:3285)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.widget.AbsListView$PerformClick.run(AbsListView.java:1640)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.os.Handler.handleCallback(Handler.java:587)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.os.Handler.dispatchMessage(Handler.java:92)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.os.Looper.loop(Looper.java:123)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
android.app.ActivityThread.main(ActivityThread.java:4363)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
java.lang.reflect.Method.invokeNative(Native Method)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
java.lang.reflect.Method.invoke(Method.java:521)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-09 17:08:39.101: E/AndroidRuntime(13361): at
dalvik.system.NativeStart.main(Native Method)
05-09 17:08:39.121: I/dalvikvm(13361): threadid=7: reacting to signal
3
05-09 17:08:39.152: I/dalvikvm(13361): Wrote stack trace to '/data/anr/
traces.txt'
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en