增加签名,优化数据倒灌
This commit is contained in:
@@ -9,6 +9,7 @@ import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -176,4 +177,15 @@ public class ApkUtils {
|
||||
return isSystemApp;
|
||||
}
|
||||
|
||||
|
||||
public static void openAppStore(Context context, String pkg) {
|
||||
Uri uri = Uri.parse("market://details?id=" + pkg);
|
||||
Intent storeIntent = new Intent(Intent.ACTION_VIEW, uri);
|
||||
storeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
try {
|
||||
context.startActivity(storeIntent);
|
||||
} catch (Exception e1) {
|
||||
Log.e(TAG, "openWeixin storeIntent: " + e1.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user