Android Scheme URL 跳转 至 支付宝扫码功能 云闪付扫码功能
Uri uri = Uri.parse("alipayqr://platformapi/startapp?saId=10000007");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
ComponentName componentName = intent.resolveActivity(ImageActivity.this.getPackageManager());
if (componentName == null) {
ToastUtils.showShort("没有下载支付宝!");
} else {
startActivity(intent);
}
Uri uri = Uri.parse("upwallet://native/scanCode");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
ComponentName componentName = intent.resolveActivity(ImageActivity.this.getPackageManager());
if (componentName == null) {
ToastUtils.showShort("没有下载云闪付!");
} else {
startActivity(intent);
}