首页 > 代码库 > Open Phone, SMS, Email,and browser apps of Android in Unity3d
Open Phone, SMS, Email,and browser apps of Android in Unity3d
最近项目需要使用Android的一些基本功能,写插件各种悲剧,google了一下,如获至宝。Nice !
string url = String.Format("tel:{0}",phoneNumber);string url = String.Format("sms:{0}?body={1}", numbers, message);string url = String.Format("mailto:{0}?subject={1}&body={2}",email_address,subject,body);Application.OpenURL(url);
相关引用:
http://www.makebetterthings.com/iphone/open-phone-sms-email-map-and-browser-apps-in-iphone-sdk/
Here is how you can open default Phone app, SMS app, Email app, Maps app and browser app with openURL.
Open default Phone app in iPhone:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];Open default SMS app in iPhone:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://466453"]];Open default Email app in iPhone:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://devprograms@apple.com"]];
Open Phone, SMS, Email,and browser apps of Android in Unity3d
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。