直接跳转到微信页面,前提是手机上有微信

点击:

// try {
// //利用Intent打开微信
// Uri uri = Uri.parse("weixin://");
// Intent intent = new Intent(Intent.ACTION_VIEW, uri);
// startActivity(intent);
// } catch (Exception e) {
// //若无法正常跳转,在此进行错误处理
// Toast.makeText(getContext(), "无法跳转到微信,请检查您是否安装了微信!", Toast.LENGTH_SHORT).show();
// }
posted @ 2017-11-30 14:49  红领巾传递人  阅读(553)  评论(0编辑  收藏  举报