B4A Question Very strange Error while using PhoneIntents.OpenBrowser(...) (drawer) - Mike1970 (first post)    Jan 29, 2021 the value stored in cd.Link is visible in the logs, first line in black, it is the result of the “Log” in the “ItemClick” sub
however I tried also without the /, no difference.
and it shouldn’t make any difference. B4A Question Email Function - Based on Erels OAuth Mechanism fails in bigger app - DaOel (first post)    Dec 27, 2023 This link is used here: #if B4A Dim pi As PhoneIntents StartActivity(pi.OpenBrowser(link)) I am very uncertain what the problem might be. As one project works and the other is not I think a good approach would be to somehow extend the small project until it is similiar to the big project. B4A Question Rate my app - JOTHA (first post)    Mar 04, 2018   (2 reactions) Try this: Dim PI1 As PhoneIntents StartActivity(PI1.OpenBrowser("https://play.google.com/store/apps/details?id=~name~")) I know, this thread is more than 4 years old, but maybe someone finds this usefull ... ;) B4A Question how can I switch & display between two open app. - DonManfred (first post)    Jul 04, 2018   (2 reactions) You can use PhoneIntents to open the browser and navigate to a url. Dim p As PhoneIntents StartActivity(p.OpenBrowser("http://www.b4x.com")) I don´t know a way to programatically switch back. B4A Question Button Click Not Opening in Browser - Erel (first post)    Mar 13, 2019   (1 reaction) See the inline help. Also available here: https://www.b4x.com/android/help/phone.html#phoneintents_openbrowser B4A Question OpenBrowser - Samsung - DonManfred (first post)    Jan 04, 2017   (1 reaction) Cast the Object to a string first
Try
Sub ListView1_ItemClick (Position As Int, Value As Object)
dim url as string = value
Dim pi As PhoneIntents
Log("Value: " & url) '= http://www.gazzetta.it/Calcio/Serie-A/Inter/04-01-2017/joao-mario-punta-champions-ancora-possibile-credo-nell-inter- B4J Library [B4X] Xml2Map - Simple way to parse XML documents - Erel    Jul 16, 2023   (51 reactions) Get("channel") Dim items As List = channel.Get("item") For Each item As Map In items Dim title As String = item.Get("title") Dim link As String = item.Get("link") ListView1.AddSingleLine2(title, link) Next End Sub Sub ListView1_ItemClick (Position As Int, Value As Object) B4A Question SMS hyperlink opens application Messages but no new SMS appears. - hatzisn    Nov 15, 2022 Good evening everyone, It's been a long time since I 've done this so I either don't remember correctly or because it is the first time I am doing it in Android 12 something has changed. I tried to send an sms using a hyperlink with PhoneIntents openbrowser command from the default SMS app. The cod B4A Question How to open a link using default app - mscientist33    Oct 09, 2021   (1 reaction) I need to open a URL link using a button with the phones default app for web browsing. Is this possible?
"edit"
Figured it out. Using:
Dim ph As PhoneIntents
Dim i As Intent
i = ph.OpenBrowser(URL)
StartActivity(i)
If this isn't the best way, please let me know. B4A Question Google Map question - grafsoft (first post)    Oct 15, 2022 Ah, this is much better than what I did. My "solution" was just a workaround. I just put a button with a map-symbol on the map and then private Sub Bmap_Click Dim p As PhoneIntents StartActivity(p.OpenBrowser("http://maps.google.com/?q=" & mypoint.Latitude & "," & mypoint.Longitude)) ' Page: 1   2   3   4   5   6   7   Powered by ColBERT |