Enable the app market in Android.
In many Android apps, many of them have a feature that scores us. You can click the feature to open the details page of the app in the app market.
In fact, this function is very simple to implement
Open the application details page
Try {Intent I = new Intent (Intent. ACTION_VIEW); I. setData (Uri. parse ("market: // details? Id = "+ getPackagename (); startActivity (I);} catch (Exception e) {Toast. makeText (SettingActivity. this, "your mobile phone has not installed the Android app marketplace", Toast. LENGTH_SHORT ). show (); e. printStackTrace ();}
The above getPackagename () is the package name of your own application.
Search for apps in the app market
Try {Intent I = new Intent (Intent. ACTION_VIEW); I. setData (Uri. parse ("market: // search? Q = pub: Your Publisher Name "); startActivity (I);} catch (Exception e) {Toast. makeText (SettingActivity. this, "your mobile phone has not installed the Android app marketplace", Toast. LENGTH_SHORT ). show (); e. printStackTrace ();}