06-11-2012 08:08 AM - edited 06-11-2012 08:11 AM
you can use below code to open BlackBerry Gallery to select picture, below code open the gallery picker and return path of the image. Path may return null or blank string if you are chossing wallpaper or device secrict images.
private String openPictureFloder()
{
String selectedImagePath="";
final FilePicker fp=FilePicker.getInstance();
fp.setFilter(".jpg");
fp.setListener(new Listener()
{
public void selectionDone(String arg0)
{
selectedImagePath=arg0;
}
});
fp.setView(FilePicker.VIEW_PICTURES);
fp.show();
return selectedImagePath;
}
I hope this will work for you
06-11-2012 08:12 AM
06-11-2012 08:13 AM
06-11-2012 08:18 AM - edited 06-11-2012 08:18 AM
I'm guessing that 'ApplicationDescriptor' is not recognized (-> it should be imported) or you have too many ')'.
Am I right?
06-11-2012 08:19 AM
06-11-2012 08:22 AM
Thanks a lot maadani .,
finally you solved my problem ....
Thanks .,
Nilesh
06-11-2012 08:37 AM
hey maadani i got all answer from you .thanks alot again...
i'm getting Path when i click on userDefined Menu.... but i need to go in menu is it possible when user click on center trackpad my menu get execute ...........?
Thanks .
Nilesh