Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Trusted Contributor
Posts: 115
Registered: ‎11-16-2011
My Device: Smartphone Storm 9900
My Carrier: 3
Accepted Solution

Detect link on string and make clickable to launch?

hi,,, i have a rich text field... and contain rich text field is data from database... on some data it is include link <a href>www.blabla.com</a> and the position of link string is not fixed, it is depend user input...

 

my logic :

1. search link string

2. get address from link string

3. make string clickable and got to other screen with browserfield

4. open connection with link from string

5. finish..

 

my problem..

how to solve logic no.1 and 2... if the link not fixed offset? and how to get url from string to open conector in browser field? thanks... i hope anybody can help me...

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Detect link on string and make clickable to launch?

Try ActiveRichTextField

 

Highlighted
Trusted Contributor
Posts: 115
Registered: ‎11-16-2011
My Device: Smartphone Storm 9900
My Carrier: 3

Re: Detect link on string and make clickable to launch?

yes u right,,, activeRichTextField is way to detect string... but how t create this... for show if this is a link... ?

Trusted Contributor
Posts: 115
Registered: ‎11-16-2011
My Device: Smartphone Storm 9900
My Carrier: 3

Re: Detect link on string and make clickable to launch?

Please help me....any solution?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Detect link on string and make clickable to launch?

As far as I can see, your only best option is to search the input text and remove the tags like <a, leaving things like the links in there, which the active text field will automatically use. 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Detect link on string and make clickable to launch?

If the content is HTML markup, then you might want to consider using BrowserField instead of ActiveRichTextField.