-
Notifications
You must be signed in to change notification settings - Fork 0
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
Android/tv-casting-app: Fix for issue in finding handleInternal() on some Android phones #165
Conversation
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
4 similar comments
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id> |
…some Android phones (#165)
…some Android phones (#165) (project-chip#26757)
…some Android phones (#165)
Problem
On Android OS 8, we encountered the following errors (not seen before on other phones/versions of Android):
Solution
The error is logged here in the SDK because the call to GetMethodId failed to find the method with the signatures mentioned above: https://github.com/project-chip/connectedhomeip/blob/master/examples/tv-casting-app/android/App/app/src/main/jni/cpp/MatterCallbackHandler-JNI.cpp#L34-L39
This change makes the handleInternal methods public (instead of private) which seems to fix the issue.This change fetches the superclass of the Callback instance passed in by the tv-casting-app code and calls GetMethodId on that Superclass, rather than the Callback class itself. It also marks the handleInternal methods as "protected" instead of "private".
Testing
Verified on the Android 8 test phone where the issue was encountered, by opening the commissioning window