Reputation: 9771
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.
Upvotes: 0
Views: 163
Reputation: 9771
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.
Upvotes: 0
Reputation: 8920
Have a look at net.rim.device.api.ui.component.ActiveAutoTextEditField
Upvotes: 1