0

Are there any inbuilt controls / APIs that will automatically pick up an email address or phone number when featured in the text of a control?

I'm told this is a common feature on BlackBerry, so what's the normal way of achieving this?

This is a UK only app if that makes a difference for phone number recognition etc.

Tristan Warner-Smith
  • 9,631
  • 6
  • 46
  • 75
  • possible duplicate http://stackoverflow.com/questions/1557783/get-blackberry-owner-details-eg-name-number-through-api – Vivart Jul 13 '10 at 09:49
  • Not a duplicate, that one is after programmatically harvesting Phone owner related data. This one is about having BlackBerry recognise phone numbers etc as active content (that gets a Call, SMS option) – Tristan Warner-Smith Jul 15 '10 at 08:10

2 Answers2

1

Have a look at net.rim.device.api.ui.component.ActiveAutoTextEditField

Richard
  • 8,920
  • 2
  • 18
  • 24
0

I wasn't able to find a way to use both the inbuilt pattern matching for phone numbers and emails along with some additional patterns for the other formats it would need to support. (00000)000000, (00000) 000000, 00000-000000, 00000 000000

It happens that in this case I had control over the data that gets sent to the phones so I added a property where I replaced the patterns I expected with the one the phones recognise.

Not the solution I wanted, but I couldn't find sufficient extensibility points to allow it.

Tristan Warner-Smith
  • 9,631
  • 6
  • 46
  • 75
  • Ah, in that case I hope someone who has previously solved this problem reads your question. I'm a bit surprised that you were'nt able to come up with a solution, but not having coded my own patterns I can't shed any more light on this. – Richard Jul 15 '10 at 13:25