开发者

What BlackBerry control options are there to detect email address and phone numbers?

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 开发者_StackOverflow社区that makes a difference for phone number recognition etc.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜