BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-26-2009, 03:36 PM   #1
BBFlunkie
Thumbs Must Hurt
 
Join Date: May 2007
Location: Columbus, OH
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 62
Default How do I include a web link?

Please Login to Remove!

JDE 4.7, I can show text, I have this;

add(new RichTextField("Line One" ,Field.FOCUSABLE));

How do I include a web link? I don't care if it's hidden.

I looked through the RIM API's and I don't see what I think I need.
Offline  
Old 01-30-2009, 04:13 PM   #2
BBFlunkie
Thumbs Must Hurt
 
Join Date: May 2007
Location: Columbus, OH
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 62
Default How do I include any clickable dynamic text?

Allow me to restate the question.

How do I include any clickable dynamic text?

Example: a web link in email, a phone number, or a pin number..
The text of the link appears in the email on the device, when you click it, it opens the browser. Or when clicking on a phone number, it opens the phone and dials it.

I saw an earlier post/response that lead me to ObjectListField....
I reviewed the API Info/Help and a few J2ME books over the last 2 days, I don't understand what I'm reading about it.
I've looked through the JDE samples and I must have overlooked what I need.
I've collected several J2ME books, and reviewed them, nothing has helped.

Maybe someone could give me a hint at which sample uses dynamic text.

Or have I missed the point entirely and must create these routines in my program?
Offline  
Old 01-30-2009, 08:20 PM   #3
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Use ActiveRichTextField - this control will recognize certain well-known types of text like a URL or phone number, and place the appopriate context menu item on your menu.

You can also add you own handler - see the API docs for StringPattern and StringPatternRepository. There is also a KB artiucle on the subject if you search for these keywords.
Offline  
Old 02-02-2009, 10:25 PM   #4
BBFlunkie
Thumbs Must Hurt
 
Join Date: May 2007
Location: Columbus, OH
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 62
Default Thanks

I overlooked ActiveRichTextField completely.

I'll look these up and let you know how it goes....
Offline  
Old 02-03-2009, 07:39 AM   #5
BBFlunkie
Thumbs Must Hurt
 
Join Date: May 2007
Location: Columbus, OH
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 62
Default Thanks, that worked perfectly, no muss, no fuss.

Thanks, that worked perfectly, no muss, no fuss.

Code:
add(new RichTextField("A phone number to call in the U.S.",Field.NON_FOCUSABLE));
add(new ActiveRichTextField("1-800-555-1212",Field.FOCUSABLE));
add(new RichTextField("An Email Address to use.",Field.NON_FOCUSABLE));
add(new ActiveRichTextField("support@rim.com",Field.FOCUSABLE));
I added this after the compiler burped;
Code:
import net.rim.device.api.ui.component.ActiveRichTextField;

Last edited by BBFlunkie; 02-21-2009 at 10:42 AM.. Reason: Added code frames
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00



Altair WBS-202 Dual channel wireless intercom base station picture

Altair WBS-202 Dual channel wireless intercom base station

$1350.00



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$199.00



Commercial Convection Steamer Altair picture

Commercial Convection Steamer Altair

$2050.00



MSA Altair 5X Gas Detector Industrial Kit  10116926 - LEL, O2, CO, H2S picture

MSA Altair 5X Gas Detector Industrial Kit 10116926 - LEL, O2, CO, H2S

$1899.00



MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222 picture

MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222

$332.65







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.