Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series

path added by addBitmapData method

Hello Friends !!

I am using addBitmapData method of cameraRoll class.

now i want to get the path of the file which is being added by this method. 

as it return void so i am not able to know the path or file name. 

is there any way by which i can know the file name. 

Thanks

 

Retired
Posts: 172
Registered: ‎06-07-2010
My Device: BlackBerry 8520

Re: path added by addBitmapData method

Hello Shaan,

 

Unfortunately you can't retrieve the folder path as there is no return value as you have mentioned, nor does the Event.COMPLETE contain any information.

 

As a workaround to retrieve the file path, you will need to use the File Object to reference the latest file that was added to the shared/camera folder.

Raihan Masroor
BlackBerry Development Advisor
Developer
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series

Re: path added by addBitmapData method

Hello Masroor Sir

Thanks for your reply

i was thinking in same way as you told.

i searched a lot but dint get how to implement listener for shared camera folder to listen that a file is beind add. 

if you can provide me sample code, it will be great help for me 

Thanks in advance.