I can give link via Button.But I want to add a App store link to "rateus" in menu item.(please see attached image)here is the button code in MainActivity.java.This is not working for menu item.please help me.
//rateus button
        android.widget.Button ratebutton = (android.widget.Button) findViewById(R.id.id_rateus);
        ratebutton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                try {
                    startActivity(new Intent(Intent.ACTION_VIEW,
                            android.net.Uri.parse("market://play.google.com/store/apps/details?id=com.slsindupotha&hl=en")));
                }catch (android.content.ActivityNotFoundException e){
                    startActivity(new Intent(Intent.ACTION_VIEW,
                            android.net.Uri.parse("https://play.google.com/store/apps/details?id=com.slsindupotha&hl=en")));
                }
            }
        });
//end rateus button code
here is my menu item image... rate us ite menu
here is the code for rate us item
<item
        android:id="@+id/id_rateus"
        android:orderInCategory="100"
        android:title="@string/action_rateus"
        android:textAllCaps="false"
        app:showAsAction="ifRoom" />

 
     
     
    