-
Notifications
You must be signed in to change notification settings - Fork 256
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 5.1 PythonActivity.mActivity Stuck #280
Comments
@331319341 so, we have the log, that's good, but it's not complete (the log should end with |
from jnius import cast import the needed Java classPythonActivity = autoclass('org.renpy.android.PythonActivity') create the intentintent = Intent() PythonActivity.mActivity is the instance of the current ActivityBUT, startActivity is a method from the Activity class, not from ourPythonActivity.We need to cast our class into an activity and use itcurrentActivity = cast('android.app.Activity', PythonActivity.mActivity) The website will open. |
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: