mattprecious / telescope

A simple tool to allow easy bug report capturing within your app.
Apache License 2.0
1.18k stars 116 forks source link

Fail silently if the device lacks an email app. #57

Closed swankjesse closed 7 years ago

swankjesse commented 7 years ago

Otherwise we suffer surprising application crashes.

FATAL EXCEPTION: main
Process: com.publicobject.rounds, PID: 6206
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND_MULTIPLE typ=message/rfc822 flg=0x1 clip={message/rfc822 U:content://com.publicobject.rounds.telescope.fileprovider/screenshots/telescope-2016-11-27-122823.png} (has extras) }
   at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
   at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
   at android.app.Activity.startActivityForResult(Activity.java:4224)
   at android.app.Activity.startActivityForResult(Activity.java:4183)
   at android.app.Activity.startActivity(Activity.java:4507)
   at android.app.Activity.startActivity(Activity.java:4475)
   at com.mattprecious.telescope.EmailLens.onPostExecute(EmailLens.java:94)
   at com.mattprecious.telescope.EmailLens.onPostExecute(EmailLens.java:51)
JakeWharton commented 7 years ago

Should this be a Toast instead? It's weird to have zero visible feedback.

swankjesse commented 7 years ago

Yeah, Toast is perfect.

swankjesse commented 7 years ago
screen shot 2016-11-27 at 4 48 09 pm