Open main menu

CDOT Wiki β

Changes

BlackBerry : Develop Simple Apps

1,753 bytes added, 12:08, 24 February 2011
2
{{Ecl_activities|type=BlackBerry|type-repo=mobile-blackberry}}__NOTOC__ == Read Code from the BlackBerry Samples ==[http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=Sample+Applications BlackBerry Samples] === Active Text Fields ===[http://docs.blackberry.com/en/developers/deliverables/20103/Active_text_field_sample_app_overview_984121_11.jsp Overview] The '''active text field sample application shows how a BlackBerry® device user can access customized items from the context menu when a pattern is recognized in an active text field. You can create active text fields by using theActiveAutoTextEditField class and ActiveRichTextField class'''. When the BlackBerry device starts, the application, pattern, and associated menu items are registered with thePatternRepository. When text with the matching pattern is found in an active text field, the text is highlighted. When the user clicks highlighted text, the context menu is displayed with the menu items that are associated with the pattern. In the sample application, when the user types a nine-digit number into an active text field, the user can click this number and a context menu with Status and Location options appears. When the user clicks one of the options, the application displays the requested information. -------------  === Bitmap Scaling ===[http://docs.blackberry.com/en/developers/deliverables/16114/BitmapScalingDemo_sample_app_overview_962026_11.jsp Overview] '''The bitmap scaling sample application demonstrates how to scale the size of a Bitmap image.''' The sample application demostrates how to scale an original Bitmap image into new Bitmap objects, how to apply filters that help reduce the pixelated appearance of a scaled Bitmap image, and how to preserve the aspect ratio of the image.