安卓通过Intent一键打开支付宝扫一扫

2018-08-13  本文已影响571人  ysnows
  1. 通过URI

        Uri uri = Uri.parse("alipayqr://platformapi/startapp?saId=10000007");
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        startActivity(intent);
    
欢迎关注我的个人公众号(捯饬捯饬啥)
daochidaochisha
上一篇下一篇

猜你喜欢

热点阅读