使用schema模式来启动手机QQ。
以下为具体代码:
Android:
String url="mqqwpa://im/chat?chat_type=wpa&uin=1141712240";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));iOS:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=1141712240&version=1&src_type=web"]]
本文介绍了如何通过Schema模式在Android及iOS平台启动手机QQ应用并直接进入聊天界面的方法。对于Android平台,可通过发送带有特定URL模式的Intent实现;而对于iOS平台,则利用UIApplication的openURL方法打开定制化的URL。

1811

被折叠的 条评论
为什么被折叠?



