Skip to content

on_new_intent not firing at app 'cold' start #1672

Description

@BrendanScottAU

I have an app which receives VIEW intents from the file browser. If it receives one from a 'cold' start (ie app has not been started before or has been stopped) then the callback doesn't fire, so it's hard to get the intent. I posted to the kivy-users mailing list. Someone suggested it was a bug. Is it a bug? When the app is starting the callback hasn't been assigned so I'm not sure. In any event it would be more intuitive if it would fire for the first intent.

The code I've used to get the intent on a cold start is:
from jnius import autoclass
PythonActivity = autoclass('org.renpy.android.PythonActivity')
activity = PythonActivity.mActivity
intent = activity.getIntent()
file_uri= intent.getData().toString()

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions