Skip to content

Easily reproducible crash accessing Context constants #235

@jtoledo1974

Description

@jtoledo1974

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions