How to access main.db of Skype App to display Recent Tab logs in Sample Android Application? -
i'm trying make android application in want show logs/call history of skype user(recent tab).
as know, skype stores contacts in server , after logging in first time , syncs contacts using sync adapter in local storage i.e contacts db not sync logs. logs stored in
/data/data/com.skype.raider/files/ user-name/main.db
is there way can access db,so call history of current logged-in skype user can displayed in android app? , if there way access db, work on non-rooted phones also?
the database file of app stored in data directory @ location "data/data/package_name/databases" , directory can not accessed if device not rooted. know in case of skype main.db file stored @ "/data/data/com.skype.raider/files/ user-name/main.db".
the way access root device. steps after rooting device be,
- your app should root access superuser.
- locate , parse "shared.xml" file in "data/data/package_name/files/shared.xml". in xml file username username. have path of db now.
- as won't having access main.db file, first have run command "chmod 777 filepath" gives full access file. (to run commands through app, checkout "roottools" library)
- now can create own dbhelper class or directly access database using sqlitedatabase.opendatabse(path, cursorfactory, flags);
remember, device has rooted.
Comments
Post a Comment