How to open google play store with button click
android
Solution
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.android.vending");
startActivity(launchIntent);
Problem
hello I am working on my own launcher that has a button that says "Google Play" what I want it to do is when the user clicks this button it takes them to the google play store home page NOT to a specific app page heres my code: ``` /** Called when the user clicks the play button */ public void play(View view) { Intent intent = new Intent(Intent.ACTION_MAIN); intent.setComponent(new ComponentName("com.android.vending","what goes here??")); intent.putExtra("grace", "Hi"); startActivity(intent); } ``` Thanks way in advance Regards Chris