简体   繁体   中英

Android accessing content provider data from NDK / C++ side

I'm throwing an intent to pick an image from the gallery, nothing special there.

If an image is on the file system (able to be opened as a simple file), there's no issue.

But, when I select an image from a provider: "content://com.android.gallery3d.provider/picasa/item/5694310418485786498"

I am having trouble because I need to open the file from the provider.

How do I open the image from the NDK side through C++ code, as I can not open it as a regular file on the file system?

See: http://developer.android.com/sdk/ndk/overview.html

"You cannot access features such as Services and Content Providers natively, so if you want to use them or any other framework API, you can still write JNI code to do so."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM