If I use this approach(i.e. using ContentProviders), I will have to
port all my code to Java. :(
Can't this be done thru Native layer? How can I overcome this external
db permission stuff ?
or How can I make UI in the same group where media app is? If I'm able
to make my UI in the same group as of media app, I think, I can access
external db thru native app which will be triggerred by my UI !

Thanks!

On Jun 5, 11:56 pm, David Turner <[email protected]> wrote:
> Why don't you try to access the corresponding ContentProvider instead ?
>
>
>
> On Tue, Jun 2, 2009 at 4:15 PM, CodePupil <[email protected]> wrote:
>
> > Hi All,
>
> > I need to access media's(which is stored on SDCard) metadata which
> > android keeps in database file created by its media app. Android
> > keeps
> > separate db file for each sdcard at the location /data/data/
> > com.android.providers.media/databases by associating sdcard id to
> > filenames e.g. external-<sdcard-id>.db
>
> > Now I need to read this db file but due to permissions(rw-rw----) I
> > dont be able to do that. If I excecute Native code as a root then
> > Obviously I'm able to access it but when I trigger my Native code
> > using some UI It's not able to access this db.
>
> > Could anybody throw some light on this?
> > How can I be able to access the db associated to sdcard using Native
> > code(which is triggerred thru some UI) ?
>
> > Thanks!- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to