unknown os platform
Linking To the Amazon Appstore for rating: Android tutorial. | Whats-online.info
whats-online-info

Linking To the Amazon Appstore for rating: Android tutorial.


Linking
2016:08:21 / Science and Tutorials

Providing a link directly to the Amazon Appstore for either rating or more apps on Android from within your app is a useful tool for promoting your apps.






Amazon Store is an alternative Google store for Android applications. Specific, they have their own Android OS called Android Kindle Fire which runs on android kindle fire phones.
App rating and reviewing on Amazon does not have a great impact on ASO (Application Search Optimization), unlike Play Store. However, app rating and reviews give store visitors a clue about the advantages and disadvantages of the application.
For this tutorial, I will show how to add app rating and review on Amazon apps.


button.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {

  try {
          Uri uri = Uri.parse("amzn://apps/android?p="+getPackageName()+"");
                     Intent goMarket = new Intent(Intent.ACTION_VIEW, uri);
                            startActivity(goMarket);
       }catch (ActivityNotFoundException e){
                   Uri uri = Uri.parse("http://www.amazon.com/gp/mas/dl/android?p="+getPackageName()+"");
                   Intent goMarket = new Intent(Intent.ACTION_VIEW, uri);
                              startActivity(goMarket);
           }
       }
 });


For the code above, I have used try and catch method. The try and catch method will work as follows. On button click, the 'try method' will try to search for the Amazon store app installed on your Android Kindle Fire phone and launch it if already exists and navigate to your application on the Amazon app store. However, in case you don't have the Amazon app store installed on your Amazon Kindle Fire, catch method is executed, and launches browser installed on your Amazon Kindle Fire phone and navigate to your application on the Amazon Store. getPackageName() is a library that gets your project package name. The intent class allows navigating to the directed activity.












You may also like:


Leave a comment












Subscribe to get replies direct to your mailbox

Submit comment