06-20-2012 12:37 PM
Hi,
I'm using the ndk to develop an app where the user can select an image from his media library and then edit it.
Is there a way to do this on PlayBook? How can I start the "Pictures" app and have it return me a file path chosen by the user?
On Android I use something like this:
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
context.startActivityForResult(photoPickerIntent, SELECT_IMAGE);
Thanks
06-20-2012 12:40 PM
another thing,
I would also need a way to add an image to the media store, so that it shows up in the "Pictures" app.
06-20-2012 02:50 PM
So I found the navigator_invoke() function, but could not find a way to do anything besides open the pictures app.
Any way to get the selected image ?
06-21-2012 02:14 PM
Hello, if you want file selection, then you should be using the Dialog functions here https://developer.blackberry.com/native/beta/refer
It has a file browser which you can use to select files from the shared pictures folder.
To save files, you save them normally like you would any file, except to the shared/photos directory
Cheers
Selom