cocos2d-x打开一个网页,特别简单
转载请注明地址白白:http://blog.csdn.net/u010229677
<span style="font-size:18px;">void FileOperation::linkToFull() { [[UIApplication sharedApplication]openURL:[NSURL RLWithString:@"http://www.baidu.com"]]; }</span>
public static void openUrl(){ if(context==null) return ; Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com")); it.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); context.startActivity(it); return ; }
cocos2d-x打开网页android与ios平台,布布扣,bubuko.com
原文:http://blog.csdn.net/u010229677/article/details/38614849