It looks like gmail is still trying to preview the document with our viewer even though it has been uninstalled?
01-08 09:52:19.033: ERROR/AndroidRuntime(4732): Uncaught handler: thread main exiting due to uncaught exception 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.google.android.gm/com.google.android.gm.ViewAttachmentActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW data=content://gmail-ls/ messages/ernst.tyler%40gmail.com/549/attachments/0.1/BEST/false type=application/pdf flags=0x1 } 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.os.Handler.dispatchMessage(Handler.java:88) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.os.Looper.loop(Looper.java:123) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.main(ActivityThread.java:3742) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at java.lang.reflect.Method.invokeNative(Native Method) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at java.lang.reflect.Method.invoke(Method.java:515) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at dalvik.system.NativeStart.main(Native Method) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW data=content://gmail-ls/ messages/ernst.tyler%40gmail.com/549/attachments/0.1/BEST/false type=application/pdf flags=0x1 } 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1470) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1440) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Activity.startActivityForResult(Activity.java:2528) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Activity.startActivity(Activity.java:2572) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.google.android.gm.ViewAttachmentActivity.openAttachmentAndFinish (ViewAttachmentActivity.java:233) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.google.android.gm.ViewAttachmentActivity.inspectCursor (ViewAttachmentActivity.java:214) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.google.android.gm.ViewAttachmentActivity.onStart (ViewAttachmentActivity.java:155) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java: 1204) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Activity.performStart(Activity.java:3319) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2112) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): ... 11 more On Jan 7, 9:40 pm, "Andrew Stadler" <stad...@gmail.com> wrote: > Tyler, > > Any time you see a problem like this (where an application "stopped > unexpectedly") the most useful thing you can do is monitor the log > output (using "adb logcat"), capture the stack trace of the actual > crash, and share that. Otherwise there's just no telling what is > going wrong. > > --Andy > > On Wed, Jan 7, 2009 at 2:51 PM, Tyler Ernst <ernst.ty...@gmail.com> wrote: > > > We are working on an application to view documents for Android. So > > our main Activity registers an intent filter to be the default viewer > > for that document type. Below is an example of how we register a > > filter. > > > <action android:name="android.intent.action.VIEW"></action> > > <category android:name="android.intent.category.DEFAULT"></category> > > <data android:mimeType="application/pdf"></data> > > > After installing our application you can select "Preview" in gmail > > with a document attachment to use our viewer to view the file. > > > However after uninstalling our application selecting "Preview" on the > > same document you previously viewed with our viewer causes gmail to > > crash with the message below. But attachments that had not previously > > been viewed with our viewer opened correctly with the default HTML > > viewer. > > > "Sorry! The application Gmail (process com. Google.android.gm) has > > stopped unexpectedly." > > > So far we have been unable to track this one down any ideas? > > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---