Files in the sample application

File name

Description

FilePickerDemo.java

  • contains the entry point for the sample application
  • contains the FilePickerDemo() constructor, which creates and displays the FilePickerDemoScreen
  • contains the FilePickerDemoScreen inner class, which performs the following actions:
    • creates and displays a button field to allow the user to start the FilePicker
    • specifies a filter for file name extensions to display only .mp3 files
    • specifies the system music folder as the first folder to be displayed
    • creates a listener that displays the selected file
Next topic: System requirements
Previous topic: Featured interfaces

Was this information helpful? Send us your comments.