How to use string pattern in BlackBerry applications

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.