这里贴出代码
iapp调用微信分享文字给好友
sit(a, "action", "android.intent.action.SEND") sit(a,"classname","com.tencent.mm","com.tencent.mm.ui.tools.ShareImgUI") sit(a, "extra", "android.intent.extra.TEXT", "分享的文字") uit(a, "chooser", "分享朋友")
iapp调用QQ打开网址
s qqpay="你要访问的网址" sit(a,"action", "android.intent.action.VIEW") sit(a,"data",qqpay) uit(a, "chooser", "QQ访问")
iapp跳转到QQ充话费界面
s qqpay="mqqapi://forward/url?url_prefix=aHR0cHM6Ly9pLnFpYW5iYW8ucXEuY29tL3dhbGxldC9yZWNoYXJnZS9kaXN0L20vaW5kZXhfdjQuaHRtbD9fd3Y9MTAzMSZzb3VyY2U9c25nXzEwODgwMSZwdnNyYz0xMTImcGF5Q2hhbm5lbD13YWxsZXRfaWNvbiZfdmFjZj1xdw==&version=1&src_type=web" sit(a,"action", "android.intent.action.VIEW") sit(a,"data",qqpay) uit(a, "chooser", "QQ支付")
iapp跳转到指定的QQ公众号
s pay="mqqwpa://im/chat?chat_type=crm&uin=需要跳转的QQ&version=1&src_type=web&web_src=http:://wpa.b.qq.com" sit(a,"action", "android.intent.action.VIEW") sit(a,"data",pay) uit(a, "chooser", "QQ公众号")
iapp跳转到QQ临时会话
ss("mqqwpa://im/chat?chat_type=wpa&version=1&uin=需要跳转的QQ" ,url) sit(a, "action", "android.intent.action.VIEW") sit(a, "data", url) uit(a, "chooser", "临时会话")
iapp跳转到QQ名片
ss("mqqapi://card/show_pslcard?src_type=internal&source=sharecard&version=1&uin=需要跳转的QQ",url) sit(a,"action","android.intent.action.VIEW") sit(a, "data", url) uit(a, "chooser", "跳转名片")
iapp跳转到QQ群
ss("mqqapi://card/show_pslcard?src_type=internal&version=1&card_type=group&source=qrcode&uin=需要跳转的QQ群号",urlqun) sit(a,"action", "android.intent.action.VIEW") sit(a,"data",urlqun) uit(a, "chooser", "QQ群")
iapp跳转到QQ群创建
s qqpay="mqqapi://forward/url?url_prefix=aHR0cDovL2FkbWluLnF1bi5xcS5jb20vbWNyZWF0ZXYzL2luZGV4Lmh0bWw/X2JpZD0yMDYmdmVyPTEmY2xpZW50dmVyc2lvbj02LjcuMSZmcm9tbG9jYXRpb249MCZfd3Y9MjA5NzE1Mgo=&version=1&src_type=web" sit(a,"action", "android.intent.action.VIEW") sit(a,"data",qqpay) uit(a, "chooser", "QQ群")
iapp跳转到支付宝扫一扫界面
s zfb="alipayqr://platformapi/startapp?saId=10000007" sit(a,"action", "android.intent.action.VIEW") sit(a,"data",zfb) uit(a, "chooser", "支付宝扫一扫")
iapp直接调用QQ发送图片
sit(a, "action", "android.intent.action.SEND") sit(a, "type", "image/jpeg") sit(a,"classname","com.tencent.mobileqq", "com.tencent.mobileqq.activity.JumpActivity") sit(a, "extra", "android.intent.extra.STREAM","/sdcard/lunbo.png") //以上为图片路径。 uit(a, "chooser", "分享图片") //此代码将直接调用QQ发图片,无需选择。
iapp跳转到淘宝搜索
s pay="taobao://s.taobao.com/search?" sit(a,"action", "android.intent.action.VIEW") sit(a,"data",pay) uit(a, "chooser", "跳转淘宝搜索") iapp隐藏浏览器控件的放大和缩小图标-代码 gvs(2,wv) //2是浏览器控件id java(ws,wv,"android.webkit.WebView.getSettings") java(null,ws,"android.webkit.WebSettings.setBuiltInZoomControls","boolean",true) java(null,ws,"android.webkit.WebSettings.setDisplayZoomControls","boolean",false)
iapp直接用QQ发文件
s wb="文件路径" //建议添加/sdcard不要删 sit(a, "action", "android.intent.action.SEND") sit(a, "type", "/") sit(a,"classname","com.tencent.mobileqq", "com.tencent.mobileqq.activity.JumpActivity") sit(a, "extra", "android.intent.extra.STREAM",wb) uit(a, "chooser", "分享文件") iapp双击事件 f(sss.a==null) { tw("再点一次") s a="呵呵" sss a=a } else { //双击执行代码放入处 } t() { stop(200) sss a=null }
© 版权声明
THE END
- 最新
- 最热
只看作者