11-06-2012 12:23 AM - edited 11-06-2012 12:24 AM
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.exam
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!
11-09-2012 04:43 AM - edited 11-09-2012 08:06 AM
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 ?
11-09-2012 06:55 AM
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.
11-09-2012 07:42 AM
11-11-2012 03:00 AM - edited 11-11-2012 03:00 AM
Thank you. I cannot believe I did not try that.