分享几个裕语言iApp代码

2018-05-13 13:26:08 -0400

唤起QQ登录

s pay="wtloginmqq://ptlogin/qlogin?p=https%3A%2F%2Fssl.ptlogin2.qq.com%2Fjump%3Fu1%3Dhttps%253A%252F%252Fh5.qzone.qq.com%252Ffriend%252Fday%252F1075625244%252F842057415%252FfriendDay%253F_wv%253D3%2526_proxy%253D1%26pt_report%3D1%26daid%3D5%26style%3D9%26pt_ua%3DECACE63108CCDA25941C048B5096B963%26pt_browser%3DChrome&schemacallback=googlechrome%3A%2F%2F"

sit(a,"action", "android.intent.action.VIEW")

sit(a,"data",pay)

uit(a, "chooser", "唤起手机qq登录")

跳转QQ临时会话

ss("mqqwpa://im/chat?chat_type=wpa&version=1&uin=1075625244" ,url)

sit(a, "action", "android.intent.action.VIEW")

sit(a, "data", url)

uit(a, "chooser", "临时会话")

跳转到QQ名片

ss("mqqapi://card/show_pslcard?src_type=internal&source=sharecard&version=1&uin=1075625244",url)
sit(a,"action","android.intent.action.VIEW")
sit(a, "data", url)
uit(a, "chooser", "跳转名片")

跳转到QQ群

ss("mqqapi://card/show_pslcard?src_type=internal&version=1&card_type=group&source=qrcode&uin=135375183",urlqun)

sit(a,"action", "android.intent.action.VIEW")

sit(a,"data",urlqun)

uit(a, "chooser", "QQ群")

双击返回键退出应用,该代码放在按键按下事件

f(st_kC==4)
{
f(sss.exit==null)
{
sss exit=0
tw("再按一次退出应用!",0)
t()
{
stop(2000)
sss exit=null
}
}
else
{
ends()
}
}

调用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收藏

sit(a, "action", "android.intent.action.SEND")
sit(a, "type", "image/jpeg")
sit(a,"classname","com.tencent.mobileqq", "cooperation.qqfav.widget.QfavJumpActivity")
sit(a, "extra", "android.intent.extra.STREAM","/sdcard/lunbo.png")
uit(a, "chooser", "收藏图片")

获取QQ头像

http://q4.qlogo.cn/headimg_dl?bs=qq&dst_uin=1075625244&src_uin=1075625244&spec=40&url_enc=0&referer=bu_interface&term_type=PC
//1075625244是QQ号

获取QQ空间头像

http://qlogo1.store.qq.com/qzone/1075625244/1075625244/100?1256954791
//1075625244是QQ号

获取QQ昵称

http://users.qzone.qq.com/fcg-bin/cgi_get_portrait.fcg?uins=1075625244//QQ

分享给微信好友

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", "分享朋友")

分享到朋友圈

sit(a, "action", "android.intent.action.SEND")

sit(a,"classname","com.tencent.mm","com.tencent.mm.ui.tools.ShareToTimeLineUI")

sit(a, "extra", "android.intent.extra.TEXT", "关注潇洒浪子")

uit(a, "chooser", "分享朋友圈")

文本控件阴影特效【放到控件属性里】

width=-2
height=-2
textsize=40sp
textcolor=#ff00be91
layout_gravity=center
text=潇洒浪子
shadowcolor=#ffff00ef
shadowradius=10
shadowdx=10
shadowdy=10
shadowcolor:阴影的颜色
shadowdx:水平方向上的偏移量
shadowdy:垂直方向上的偏移量
shadowradius:是阴影的的半径大小

实现跑马灯

width=100dp
height=-2
text=i love iApp this my xiaxia
marqueerepeatlimit=marquee_forever
ellipsize=marquee
scrollhorizontally=true
focusableintouchmode=true
focusable=true
注意文字长度要超过控件的宽度,才能显示跑马效果,另外如果文字过长要显示省略号可以设置下面的属性:
ellipsize=start 省略号在开头
ellipsize=middle 省略号在中间
ellipsize=end 省略号在结尾

查询QQ注册时间

s qqpay="mqqapi://forward/url?url_prefix=aHR0cHM6Ly90aS5xcS5jb20vcXFtZWRhbDIvaW5kZXguaHRtbD9fd3Y9NTM2ODcwOTEzJl93d3Y9NCZfYmlkPTI0NTAmX25hdl9hbHBoYT0wJl9uYXZfdHh0Y2xyPWZmZmZmZiZfbmF2X3RpdGxlY2xyPWZmZmZmZiZfbmF2X2FuaW09dHJ1ZSZuZXdfbWVkYWxzPSZyYW5rc2hhcmU9JnR1aW49JnVwZGF0ZV9tZWRhbHM9JmZyb21fd2ViPTY=&version=1&src_type=web"

sit(a,"action", "android.intent.action.VIEW")

sit(a,"data",qqpay)

uit(a, "chooser", "QQ访问")
//唤起QQ勋章墙以后点QQ身份证就行了

利用sit直接拨打电话和发短信

sit(a, "action","android.intent.action.CALL")

sit(a, "data", "tel:10086")

uit(a, "chooser", "直接拨号")
//以上为直接拨打电话代码

sit(a, "action","android.intent.action.SENDTO")

sit(a,"type","vnd.android-dir/mms-sms")

sit(a, "data", "smsto:10086")

sit(a,"extra","sms_body","hello world!")

uit(a, "chooser", "发短信")
//以上为发短信代码(防止某些小学生恶意发短信,所以就不分享直接发短信代码了!)

调用手机QQ访问网页

s qqpay="mqqapi://forward/url?url_prefix=aHR0cDovL2kucWlhbmJhby5xcS5jb20vYWN0L3dhbGxldC8yMDE3MDMvZnJpZGF5L2luZGV4Lmh0bWw/X3d2PTEmX3d3dj00JnB2c3JjPTEwMQ==&version=1&src_type=web"
sit(a,"action", "android.intent.action.VIEW")
sit(a,"data",qqpay)
uit(a, "chooser", "QQ访问")
//怎么换成你的链接呢?把上面qqpay的内容里的链接里的base64位编码换了

跳转到QQ公众号

s pay="mqqwpa://im/chat?chat_type=crm&uin=4008205555&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公众号")

跳转到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支付")

打开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群")

跳转应用市场指定应用

sit(a, "action","android.intent.action.VIEW")

sit(a,"data","market://details?id=com.iapp.app")

uit(a, "chooser", "开始评分")

需要更多代码的小伙伴可以加入QQ群 705039659

«Newer      Older»

----Comments(1)----
易 at 2018-05-20 15:12:
支持
Comment:
Name:

Back to home

Subscribe | Register | Login | N