I have using android alert dialog builder to display the some user message(String) as a pop up box to the user.
Now, My requirement is the message box should be able to support HTML format for this message. Including, there may be a URL/link returned in this user message. Selecting this link should put the current application in the background and popup the phone’s browser and take the user to URL that was in the link. Closing the browser would brings application back to the foreground.
How can I do this? Can i use the same alert dialog builder or any other choice available?
All the above answer will not remove html tag like , etc if the given string contains, I tried to remove all the tags, and this is work fine for me
and the custom_dialog would be like;
The above code will remove all the html tag and shows Example as Click able URL all others in the specified html formatting text.