Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivityNotFoundException on HUWAI P8 / Huawei GRA-L09 #59

Open
fpoyer opened this issue Jan 17, 2017 · 3 comments
Open

ActivityNotFoundException on HUWAI P8 / Huawei GRA-L09 #59

fpoyer opened this issue Jan 17, 2017 · 3 comments

Comments

@fpoyer
Copy link

fpoyer commented Jan 17, 2017

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
Copy link
Owner

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
Copy link
Author

fpoyer commented Mar 22, 2017

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants