• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to launch default activity for any given uri/url

twilight0

Lurker
I am a kodi addon developer and I believe I have skills more than average when it comes to Python. I am the sole maintainer of the AliveGR addon, the most popular greek addon around the world.

On Android I still suck... I am able to call an android activity from within Kodi with very specific intent, data uri and package name, but how can I call the default app for twitter, facebook or even a web browser?

Example:

Code:
control.execute('StartAndroidActivity("package_name","android.intent.action.VIEW","","url")')

Where package_name could be 'com.google.chrome' and url could be 'facebook.com'

Is there something "generic" package name which I can call and launch respective application?
 
This probably isn't the ideal forum to ask your question. You may get a better response if you ask on the Kodi community forums, and/or StackOverflow, if you've not already done so.
I'm not saying nobody can answer here, but this forum deals with Android application development including Java coding issues.
 
Thank you. I don't think I 'll get a better response on Kodi forum, as this is completely related to Android, but you never know...
I have already asked on stackoverflow.
 
Please post the SO link here, so we don't duplicate advice.
Thanks.
 
Back
Top Bottom