Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

reviews button ade android studio

Button.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {
                // TODO Auto-generated method stub
                final String myappPackageName = getPackageName(); // getPackageName() from Context or Activity object
                try {
                 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + myappPackageName)));
                } catch (android.content.ActivityNotFoundException anfe) {
                 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + myappPackageName)));
            }
        });
Comment

PREVIOUS NEXT
Code Example
Java :: android toast 
Java :: android maven dependency 
Java :: gat environment variables java 
Java :: how to substring in java 
Java :: java toggle button get state 
Java :: for cicle java 
Java :: lombok maven plugin 
Java :: regex pattern for valid logins 
Java :: how to remove all characters before a certain character from a string in java 
Java :: synchronized block java 
Java :: Java printf() Method using PrintWriter 
Java :: assert log in unit testing 
Java :: java string literals 
Java :: how to sum a 2d array in java 
Java :: java random number generator in range 
Java :: generate uuid from string 
Java :: fixed length array powershell 
Java :: view all certificates from keystore java 
Java :: arraylist index java 
Java :: System.out.printf("%"+(n)+"s ") 
Java :: prime number program in java 
Java :: android dialogfragment fullscreen stack overflow 
Java :: selection sort java 
Java :: java list last element 
Java :: java instantiate a scanner 
Java :: java pointer 
Java :: on item click listener for recyclerview adapter 
Java :: android java how to blur an image 
Java :: draw circle with fill java 
Java :: java array get index 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =