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

点击:

// 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();
// }
原文地址:https://www.cnblogs.com/98k98k/p/7928977.html