How to display text in BlackBerry applications, to achieve the following effects.
1. Show @cafebabe, you can choose the menu "Sina follow Cafebabe".
2. Show the Shanghai Luwan Lakeside Road XXX, you can choose the menu "Google Map."
3. Display mobile phone number, you can select the menu "Call IP".
These features can be easily implemented on the BlackBerry, implemented through the Net.rim.device.api.util.StringPattern API.
The effect of the following figure:
Reference:
Blog:super Apps Series (Java): How to leverage pattern recognition in your application (Part 1)
Http://devblog.blac kberry.com/2010/09/leverage-pattern-recognition-part-1/
Another blog:
http:// codemonkeyan.blogspot.com/2009/03/how-to-leverage-pattern-matching-in.html
Kb:leverage pattern matching in BlackBerry smartphone applications to provide a integrated user experience
http://supportforums.blackberry.com/t5/ java-development/leverage-pattern-matching-in-blackberry-smartphone-applications/ta-p/445053? iid=devsf3101
Kb:how to-leverage pattern matching on BlackBerry smartphone applications to provide an integrated User Experience
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505 /800608/how_to_-_leverage_pattern_matching_in_blackberry_smartphone_applications_to_provide_an_integrated_user _experience.html?nodeid=1234285&vernum=0
Example source code:
Http://supportforums.blackberry.com/rim/attachments/rim/java_dev@tkb/202/1/zipcodelookupsamples.zip
Other:
http://supportforums.blackberry.com/t5/Java-Development/quot-Get-Link-quot-context-menu-item-gone/m-p/384087#M73529