APP how to comment on the pop up by invoking scores
1.Open with Intent within the App:
public void startActivity(){ String packageName = "package name of the
App to be opened";
String uri = String.format("market://woyou.market/appDetail?packageName=%s",packageName);
Intent intent= new Intent(Intent.ACTION_VIEW,Uri.parse(uri));
intent.addCategory(Intent.CATEGORY_DEFAULT);
PackageManager packageManager = getPackageManager();
List activities = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
boolean isIntentSafe = activities.size() > 0;
if (isIntentSafe) {
startActivity(intent);
}
}
2.Open
by use of webview:apply < a href=" "> in xml to enter the detail page of
the App market a> If mWebView.setWebViewClient(); has set
this function, then it’s not OK to automatically open
with a link, it’s only
possible to intercept the link and then apply Intent
to jump.
mWebView.setWebViewClient(newWebViewClient() {
@Override public boolean shouldOverrideUrlLoading (WebView view, Stringurl){
Log.d(TAG, "shouldOverrideUrlLoading: " + url);
Intent intent = null;
try {
intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);
} catch (URISyntaxException e) {
e.printStackTrace();return false;
}
startActivity(intent);
return true;
}
});
3.Open in the browser: address:market://woyou.market/appDetail?packageName=package
name Note:it’s OK to open only in the terminal’s own
carried browser or Chrome browser, it’s impossible all to open
it in other browsers.
4.Update appUpdate market://woyou.market/appUpdate
5.Comment on appComment
market://woyou.market/appComment?packageName=%s&type=true/false(true take
the initiative to click and pop up false automatically pops up) String uri =
String.format(“market://woyou.market/appComment?packageName=%s&type=%s”,packageName,true);