You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When it crashes, what does adb logcat produce? I think it is probably a permission issue. Or after researching you may have the wrong object POWER_MANAGER should be POWER_SERVICE at least according android.app.Activity Even android.content.Context does not define POWER_MANAGER.
Also WIFI_POWER should be WIFI_SERVICE.
The following code crashes the remote shell (as it does on my app, as well)
from jnius import autoclass
PythonActivity = autoclass('org.renpy.android.PythonActivity')
activity = PythonActivity.mActivity
activity.POWER_MANAGER
It should return the string "power", as defined in the the Context class android API
I've checked it crashes as well when accessing WIFI_POWER, for instance. I suspect it's the same for other constants.
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: