cocos js 在android ios 打开网页
来源:互联网 发布:apk软件如何安装 编辑:程序博客网 时间:2024/05/19 13:19
AppActivity.java
public static void openUrl(String url)
{Uri uri = Uri.parse(url);
Intent it = new Intent(Intent.ACTION_VIEW,uri);
instance.getContext().startActivity(it);
// sContext
}
//ios
+(void) openUrl: (NSString * )urlStr{
NSString *url = [NSString stringWithFormat:@"%@", urlStr];
[[UIApplication sharedApplication] openURL :[NSURL URLWithString:url]];
}
NSString *url = [NSString stringWithFormat:@"%@", urlStr];
[[UIApplication sharedApplication] openURL :[NSURL URLWithString:url]];
}
阅读全文
0 0
- cocos js 在android ios 打开网页
- cocos-js在android平台下打开网页
- cocos 打开网页
- JS判断网页是在安卓打开还是IOS打开
- android 在WebView打开网页
- JS判断网页是否在微信中打开
- 在android中通过intent打开网页
- cocos js- android 平台 java与js互调 , ios平台 Objective-c与js互调
- 在 Ios下编译cocos
- js打开网页总结
- cocos js js java互调 (如何在ANDROID平台上使用JS直接调用JAVA)
- cocos-js android按键监听
- cocos-js编译android apk
- 如何在网页打开时弹出通知,JS代码
- js判断是否在微信浏览器中打开网页
- iOS 打开网页URL
- android cocos ios文本复制
- 在MAC系统中android studio中打开 cocos creator构建的原生工程
- 7-4
- mybatis传入map参数之后xml文件中取值问题
- 如何优雅地测量一只猫的体积
- 解决VS2015启动出现“cannot find one or more components .Please reinstall the application”
- 动态规划——如何分析一道动态规划的题
- cocos js 在android ios 打开网页
- linux的内存回收和交换
- Android水波纹loading
- Spring 请求参数乱码
- 设计模式概念总结
- c#--发起一个http请求
- Java学习笔记07——Oracle数据库SQL开发基础
- PAT (Advanced Level) Practise 1084 Broken Keyboard (20)
- iOS持久化Core Data之一 CoreDataHelper