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

ActivityNotFoundException on HUWAI P8 / Huawei GRA-L09 #59

Open fpoyer opened 7 years ago

fpoyer commented 7 years ago

We are currently developping an application, and using Telescope as a mean for our beta-testers to send us screenshots of problems, but Telescope is crashing with ActivityNotFoundException on a specific phone (namely a HUAWEI P8 aka Huawei GRA-L09).

This seems to be a known bug of this specific model/vendor so nothing can be done... except catching the exception when it happens (most likely with a bit of log and comment ;))! Exception happens in com.matttpreciousRequestCaptureActivity, when calling the "startActivityForResult" in requestCapture method (line 45).

Bug known and reported to huawei here : http://support.huawei.com/huaweiconnect/enterprise/thread-146661-1-1.html?lang=en Bug known and reported to Android here : https://code.google.com/p/android/issues/detail?id=178352

mattprecious commented 7 years ago

I don't think there's anything Telescope can do here... That OS build is very broken if that's crashing.

If you set the screenshot mode to CANVAS for that device then it'll use a different method for screen capturing that won't trigger that crash.

fpoyer commented 7 years ago

As I said previously, I think the only thing Telescope can do here is catch the Exception and log it... If that is not an option for whatever reason, then feel free to close this Issue.

And I agree with you, it is a very broken build of Android runnning on that phone (shame at that, since it is not that cheap either... I would have expected such problems on the P8 lite for example, but not the P8)

We will have a look at your workaround though, thanks for mentioning it, I'll report in this thread whether another bug appears with that option or not.

mattprecious commented 7 years ago

I'll look into it. Should be simple enough to fall back to CANVAS automatically if that exception is thrown.