本帖算是搜集,从网上看到的贴子,综合整理了一下:
String url = "mqqwpa://im/chat?chat_type=wpa&uin=852454151&version=1"; try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); } catch (Exception e) { Toast.makeText(this,"本机未安装QQ",Toast.LENGTH_SHORT).show(); }
本帖算是搜集,从网上看到的贴子,综合整理了一下:
String url = "mqqwpa://im/chat?chat_type=wpa&uin=852454151&version=1"; try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); } catch (Exception e) { Toast.makeText(this,"本机未安装QQ",Toast.LENGTH_SHORT).show(); }