unknown os platform
Linking To the Google Play store for rating: Android tutorial. | Whats-online.info
whats-online-info

Linking To the Google Play store for rating: Android tutorial.


Linking
2016:08:21 / Science and Tutorials

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






Google Play is an app store where effort is needed to increase the Visibility of your application on both search engine and the play store search. You may have hundreds of application on Google play store but getting very minimal downloads. On the other side, your friend might just have one application but gets a good number of downloads per day. Google facilitate app downloads as per ASO  (Application Search Optimisation) techniques used, and one key factor for ASO is app rating and reviews.
For this article, I will show how to add app rating and review on play store Apps.


  button.setOnClickListener(new View.OnClickListener() {
                @Override
                     try {
                public void onClick(View v) {
                            Uri uri = Uri.parse("market://details?id="+getPackageName()+"");
                            Intent goMarket = new Intent(Intent.ACTION_VIEW, uri);                             startActivity(goMarket);
                            Uri uri = Uri.parse("https://play.google.com/store/apps/details?id="+getPackageName()+"");
                        }catch (ActivityNotFoundException e){                             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 Google play store app installed on your Android phone and launch it if already exists and navigate to your application on the play store. However, in case you don't have the play store app on your Android phone, catch method is executed, and launches browser installed on your Android phone and navigate to your application on the play 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