码迷,mamicode.com
首页 > 移动开发 > 详细

Open Phone, SMS, Email,and browser apps of Android in Unity3d

时间:2014-08-27 15:59:37      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   http   color   使用   io   for   ar   

最近项目需要使用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

标签:android   style   blog   http   color   使用   io   for   ar   

原文地址:http://www.cnblogs.com/chongxin/p/3939406.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!