iOS Question Simple app to open browser

Scotter

Active Member
Licensed User
Hi -

I've created an Android app using B4A that merely opens the default browser to a specfic URL.

I need to create the same app for iPhone using B4i. I'm on a Windows 8.1 PC and purchased the Hosted Mac Builder. Is there anything I need to do differently if all I did for the B4A app was this:

Sub Activity_Create(FirstTime As Boolean)
Dim p As PhoneIntents
StartActivity(p.OpenBrowser("https://www.url.com"))
Activity.finish
End Sub

Oh and regarding the "Libraries Manager" on the right. Do I need to check any of those libraries other than the default checked "iCore (version 2.52)"?

Thanks for any help you can give!
 
Last edited:

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

it's very simple:
B4X:
App.OpenURL("https://b4x.com/android/forum/threads/simple-app-to-open-browser.64960/")
You don't need a extra library for it.

Jan
 
Last edited:
Upvote 0

Scotter

Active Member
Licensed User
Hi,

it's very simple:
B4X:
App.OpenURL("https://b4x.com/android/forum/threads/simple-app-to-open-browser.64960/")
You don't need a extra library for it.

Jan
Thank you!
In which sub do I place that code?
In "Private Sub Application_Start (Nav As NavigationController)"?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
@JanPRO ,

thanks for the hint.

but how do you get back to the app without going to the home screen first via the home button?

I don't see any return to app link
 
Upvote 0
Top