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 ?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With