Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Contributor
R_E_W
Posts: 13
Registered: ‎03-04-2013
My Device: PlayBook
Accepted Solution

Open link to native app on AppWorld from Android Runtime application

I am able to open appworld application from android runtime using this code

 

final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.mycompany.myapp"));
context.startActivity(intent);

 

But as native apps do not have package name what should i provide to open native app in AppWorld from android runtime app? I have an app id for the native app.

 

If i try to open the link using the next code

final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://appworld.blackberry.com/webstore/content/1321456"));
context.startActivity(intent);

on playbook then i get a page with message You do not have permission to open this page. appworld://content/1321456

 

Please use plain text.
Contributor
R_E_W
Posts: 13
Registered: ‎03-04-2013
My Device: PlayBook

Re: Open link to native app on AppWorld from Android Runtime application

SOLVED. Native apps do have bundle id. It can be used as android app package to open link on AppWorld
Please use plain text.