调用Market 搜索软件
2014-12-13 09:08
-
-
-
-
private void startSearchPNAMEIntent(){
-
String pkgname;
-
-
if(mEditText != null){
-
pkgname = mEditText.getText().toString();
-
}else{
-
return;
-
}
-
-
Uri uri = Uri.parse("market://search?q=pname:"+pkgname);
-
Intent it = new Intent(Intent.ACTION_VIEW, uri);
-
startActivity(it);
-
}
-
-
-
-
-
private void startSearchPNAMESIntent(){
-
String pkgnames;
-
-
if(mEditText != null){
-
pkgnames = mEditText.getText().toString();
-
}else{
-
return;
-
}
-
-
Uri uri = Uri.parse("market://search?q=pnames:"+pkgnames);
-
Intent it = new Intent(Intent.ACTION_VIEW, uri);
-
startActivity(it);
-
}
-
-
-
-
-
private void startSearchPUBIntent(){
-
String pub;
-
-
if(mEditText != null){
-
pub = mEditText.getText().toString();
-
}else{
-
return;
-
}
-
-
Uri uri = Uri.parse("market://search?q=pub:"+pub);
-
Intent it = new Intent(Intent.ACTION_VIEW, uri);
-
startActivity(it);
-
}
-
-
-
-
-
private void startSearchIDIntent(){
-
String id;
-
-
if(mEditText != null){
-
id = mEditText.getText().toString();
-
}else{
-
return;
-
}
-
-
Uri uri = Uri.parse("market://search?id="+id);
-
Intent it = new Intent(Intent.ACTION_VIEW, uri);
-
startActivity(it);
-
}
^