Languages

Menu
Sites
Language
Best Practice: Open URL stored in text file

Good morning everyone,

I was wondering what would be the best practice to handle this scenario.  We bring a text file into our app that contains some urls.  Think of it as an Email where people send you a few links to check. How can we code things so that the url's when clicked open in a new window (to not crash the app)?

--> Should we do a regex on the text file?
--> Is there a higher level API/Call that we can make so that by default URL's open in a new window (this would be more efficient)

Merci,

Gregory

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
Lakshmi Grandhi
For opening any links u have to use "href" with link, to open the link in new window u have used