Pickers

You can use pickers to help users choose an item from a list easily.

Type of picker

Description

File

This picker allows users to browse for files on their BlackBerry® devices.

This screen shows an example of a file picker.

Location

This picker allows users to choose a location from a list that you define. For example, you can allow users to choose their GPS location or a previously selected location.

This screen shows an example of a location picker.

Date

This picker allows users to choose a specific day, month, or year. For example, you can allow users to choose a month and year to specify when their credit card expires.

This screen shows an example of a date picker.

Time

This picker allows users to choose a specific hour, minute, or second.

This screen shows an example of a time picker.

Best practice: Implementing pickers

Use the FilePicker, LocationPicker, and DateTimePicker classes to create pickers. For more information about creating pickers, see the API reference for the BlackBerry® Java® SDK and the BlackBerry Java Application UI Quick Reference Guide.

Guidelines for file pickers

  • Specify a specific view to display the types of files that match the user's goal. For example, if a user is browsing pictures, display pictures in the file picker.
  • Allow users to start browsing from an appropriate default folder if possible.
Next topic: Spin boxes

Was this information helpful? Send us your comments.