I would like to open a new url in the default browser when the user clicks on an image. I have looked into the Titanium.Platform.openURL but don't know how to use it.
any help is appreciated
I would like to open a new url in the default browser when the user clicks on an image. I have looked into the Titanium.Platform.openURL but don't know how to use it.
any help is appreciated
Ti.Platform.openURL("http://m.google.com"); //replace string lit with your url
You just pass the URL you want to open on the click event as the parameter to openUrl
make sure the link has "http://" in front or it won't do anything
© 2022 - 2024 — McMap. All rights reserved.