在XE6 firemonkey IOS-DELPHI打开网址 [英] Open URL in XE6 firemonkey IOS-DELPHI

查看:190
本文介绍了在XE6 firemonkey IOS-DELPHI打开网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,

我试图做一个跨平台的应用程序为Android和iOS打开,将作为参数传递的默认浏览器在Android中我已经实现了用下面的code网址:

I'm trying to do a cross-platform application for both android and IOS to open a URL that will pass as parameter in the default browser in android I have achieved using the following code:

 { Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_VIEW,
  TJnet_Uri.JavaClass.parse(StringToJString
  ('http://www.***.com'));
  SharedActivity.startActivity(Intent); }

但在IOS不知道如何在默认浏览器中打开一个网址,我找遍成千上万的使用方法的网页,但没有一个曾经帮助过我,如果你能帮助我,我将不胜AP preciate了!

But in IOS do not know how to open a URL in the default browser, I searched thousands of pages that use methods but none have helped me, if you could help me I would greatly appreciate it!

推荐答案

我觉得你应该这样做的。完美的作品对我来说:

I think you should do it that way. Works perfect for me:

http://delphi.org/2013/10/sending-a-url-to-another-app-on-android-and-ios-with-delphi-xe5/

这篇关于在XE6 firemonkey IOS-DELPHI打开网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆