Accessing android DB(Created by Android media app) using Native code .. !!

by CodePupil » Fri, 05 Jun 2009 03:06:32 GMT

Sponsored Links
 Hi Guys,

I need to access media's(which is stored on SDCard) metadata which
android keeps in database file created by its media app. Android
separate db file for each sdcard at the location /data/data/ 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) ?



Other Threads

1. How to add some button dynamicly aftersetContentView

U can use id in xml, use findViewById method to find the layout in your 
activity, then add a new button in layout with code.


Senior Software Engineer/MDEV Creator
Project Wiki:
Mobile: +86.13485512230
Address: 7#602 ShuNanTingYuan, WangJiang Road,HeFei City,An Hui Province

 chen ji 
€ 2010-02-04  11:12:42 
 Android Developers 
[android-developers] How to add some button dynamicly aftersetContentView 
Hi All,
I have use setContentView(R.layout.main) in the onCreate as using XML
to set my whole layout.
But now I need add some button dynamicly in the code so I think I need
get the layout of the Activity again.
So need I get the laytout of the activity again?
If I am right, how to get it?
Thanks very much'

2. How to add some button dynamicly after setContentView

Yes, you should use
LayoutInflater  _inflater = LayoutInflater.from(context);
to relect the layout file into your code
View itemView = _inflater
                    .inflate(R.layout.tool_bar_menu_item, parent, false);
then you can add something you want to itemView
I hope this will be help

2010/2/4 chen ji <>


3. How to add some button dynamicly after setContentView

4. Fwd: enomther v1.5.1 + cyan highmem.. maknyusss

5. lost in the maze of align/gravity/layout

6. Linking a Video to the Browser's Player

7. Generating .java file from .aidl file