本帖算是蒐集,從網上看到的貼子,綜合整理了一下:
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(); }