Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to write review on Amazon market using app?

Tags:

android

I want to write a review on amazon market from my application. However I can do this for android market using this code.

Uri marketUri = Uri.parse("market://details?id=" + getPackageName());
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(marketUri);
startActivity(intent);

Than what should I do for doing same thing for Amazon market ?

like image 837
Mahek Avatar asked Oct 05 '11 09:10

Mahek


1 Answers

For Amazon App Store check this link https://developer.amazon.com/help/faq.html It has a lot of helpful info. The answer to your question is under "Marketing"

Intent goToAppstore = new Intent(Intent.ACTION_VIEW,
       Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=com.jakar.myapp"));
       goToAppstore.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
       context.startActivity(goToAppstore);

That will open the Amazon App store to myapp. (switch "com.jakar.myapp" with your package name of course).

For supporting both Android and Amazon marketplaces with the same APK file see this: How to support Amazon and Android Market (Google Play) links in same APK

like image 139
Reed Avatar answered Oct 19 '22 03:10

Reed