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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Android™ Runtime Development

Reply
New Contributor
bfreq
Posts: 2
Registered: ‎11-06-2012
My Carrier: NA

Appworld market link in Android runtime.

[ Edited ]

So I have an app on the appworld and I would like to add a link to it in my app so that people can more easily rate it.  Normally on the android market I would do something like:

 

Uri uri = Uri.parse("market://details?id=com.example.test");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

 

Or on Amazon I would do:

 

Uri uri = Uri
.parse("http://www.amazon.com/gp/mas/dl/android?p=com.example.test");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

 

But when I try the following it does not work:

 

Uri uri = Uri.parse("appworld://content=000000");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

 

It pops up a browser and then I get a message about not being able to do it or somthing.  What would be to correct way to handle this link?

 

Thanks!

Please use plain text.
New Developer
Minishlink
Posts: 23
Registered: ‎02-12-2012
My Carrier: Free Mobile

Re: Appworld market link in Android runtime.

[ Edited ]

I'm also interested in this issue. I tried to link to the webpage of the App World, which normally launch the App World app, but this happens only with the native browser. So a workaround would be to acheive launching the native browser from the Android runtime, but how ?

-----------------------------
See my PlayBook apps and my website.
Twitter : @Minishlink
Please use plain text.
Contributor
Sriman
Posts: 31
Registered: ‎02-26-2012
My Carrier: None

Re: Appworld market link in Android runtime.

You would do the same as you would do it on Android...

 

market://details?id=com.example.test

 

The runtime on BlackBerry PlayBook recognizes that it is a market link and opens the App World. 

Please use plain text.
New Developer
Minishlink
Posts: 23
Registered: ‎02-12-2012
My Carrier: Free Mobile

Re: Appworld market link in Android runtime.

Well I guess this is new from 2.0.1 or 2.1. Thank you ! :smileyhappy:
-----------------------------
See my PlayBook apps and my website.
Twitter : @Minishlink
Please use plain text.
New Contributor
bfreq
Posts: 2
Registered: ‎11-06-2012
My Carrier: NA

Re: Appworld market link in Android runtime.

[ Edited ]

Thank you.  I cannot believe I did not try that.

Please use plain text.