OPEN IMAGE ( ACCES TO CONTENT PROVIDER TO GET REAL PATH)

Hi, when i receive an image in my app from lancher with an intent , in devices with android 4.0 and highter an url of type  “content://media” instead of the real path to the image. So i need to acces to a content provider to get a real path for chargue the image receive on intent launcher.

Can i acces to a content provider with corona?

How can i do it?

Thanks in advance

Alex

Please don’t post in all caps.  This is considered shouting plus it makes the post hard to read.

Can you provide a better description of the problem? 

What API calls you are using? 

What version of Corona SDK are you using?

Perhaps post some code that should be working that isn’t?

Thanks

Rob

Hi Rob, I have and application to send edit images and send thow social networks.

I declared it as a Picker image receiver in android manifest so, somebody can launch my app from image Gallery share or in your own app to edit the image and send it.  My app receives an intent launcher with a selected image on phone Gallery.

In Devices with Android 4.0 and highter the operating systems uses a index to acces more quickly to images so the path for image received in intent it’s this index.

An example with native code you can check in this post.

http://stackoverflow.com/questions/18396803/how-to-get-absolute-file-path-for-media-uri.

I’m using Corona SDK 2013.1202 build.

in main i get the launch arguments

local launchArguments = …
if launchArguments then

Engineering says this type of activity will require Corona Enterprise to do.  You have to handle the content provider’s URL natively in Java.

Rob

Please don’t post in all caps.  This is considered shouting plus it makes the post hard to read.

Can you provide a better description of the problem? 

What API calls you are using? 

What version of Corona SDK are you using?

Perhaps post some code that should be working that isn’t?

Thanks

Rob

Hi Rob, I have and application to send edit images and send thow social networks.

I declared it as a Picker image receiver in android manifest so, somebody can launch my app from image Gallery share or in your own app to edit the image and send it.  My app receives an intent launcher with a selected image on phone Gallery.

In Devices with Android 4.0 and highter the operating systems uses a index to acces more quickly to images so the path for image received in intent it’s this index.

An example with native code you can check in this post.

http://stackoverflow.com/questions/18396803/how-to-get-absolute-file-path-for-media-uri.

I’m using Corona SDK 2013.1202 build.

in main i get the launch arguments

local launchArguments = …
if launchArguments then

Engineering says this type of activity will require Corona Enterprise to do.  You have to handle the content provider’s URL natively in Java.

Rob