E4A问题 就是我做的app 做好了 然后里面的加群链接显示不出来
e4a吧
全部回复
仅看楼主
level 2
2017年03月29日 09点03分 1
level 14
加群不是这样写的,回家我把源码发出来。
2017年03月30日 10点03分 2
在吗哥加个微信或者QQ聊聊
2019年02月24日 04点02分
level 14
在左边 工程 下面 接口 右键新键一个 创建接口H数 跳转QQ群
复制下面的内容到里面去。原来里面的全删除。
跳转QQ
package com.e4a.runtime.api;//包名必须固定为这个,不能自己修改
import com.e4a.runtime.annotations.SimpleFunction;
import com.e4a.runtime.annotations.SimpleObject;
import com.e4a.runtime.android.mainActivity;
import android.content.Intent;
import android.net.Uri;
@SimpleObject
public final class 跳转QQ{
@SimpleFunction//导出函数标记
public static int 跳转(String QQ){
Intent intent = new Intent();
intent.setData(Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=" + QQ));
try {
mainActivity.getContext().startActivity(intent);
return 1;
} catch (Exception e) {
return 0;
}
}
}
跳转QQ群
package com.e4a.runtime.api;//包名必须固定为这个,不能自己修改
import com.e4a.runtime.annotations.SimpleFunction;
import com.e4a.runtime.annotations.SimpleObject;
import com.e4a.runtime.android.mainActivity;
import android.content.Intent;
import android.net.Uri;
@SimpleObject
public final class 跳转QQ群{
@SimpleFunction//导出函数标记
public static int 跳转(String key){
Intent intent = new Intent();
intent.setData(Uri.parse("mqqopensdkapi://bizAgent/qm/qr?url=http%3A%2F%2Fqm.qq.com%2Fcgi-bin%2Fqm%2Fqr%3Ffrom%3Dapp%26p%3Dandroid%26k%3D" + key));
try {
mainActivity.getContext().startActivity(intent);
return 1;
} catch (Exception e) {
return 0;
}
}
}
使用方法:
跳转QQ群.跳转("JjTnteHeUmb1RLM65VUUlqY3iPwIyDf5")
说明:不知道key的http://qun.qq.com/join.html进链接获取
跳转QQ.跳转("88888888")
2017年03月30日 13点03分 3
感谢!
2017年04月03日 13点04分
非常感谢啊[呵呵]
2017年04月26日 14点04分
哥们你QQ多少
2017年06月06日 15点06分
什么事?
2017年06月07日 08点06分
level 2
不懂
2017年04月10日 11点04分 4
level 14
https://pan.lanzou.com/1264991
先解压得到源码。
2017年06月16日 03点06分 6
老哥 我就想做这种软件 麻烦加个微信或者qq吧
2017年09月30日 16点09分
谢谢老哥
2020年05月08日 11点05分
level 1
非常感谢
2020年05月08日 11点05分 9
1