, but I do not have permision to read or copy it, yet alone write to it. I'm stumped, because I don't want my app to need superuser permission in order to get a music file name from a database.data/data/com.android.providers.media/databases/external-#card id in hex#.db
Sub Process_Globals
Dim mp As MediaPlayer
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
mp.Initialize
End If
Dim cc As ContentChooser
cc.Initialize("cc")
cc.Show("audio/*", "Choose audio file")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause(UserClosed As Boolean)
End Sub
Sub CC_Result (Success As Boolean, Dir As String, FileName As String)
If Success Then
mp.Load(Dir, FileName)
mp.Play
End If
End Sub
Sub Activity_Create(FirstTime As Boolean)
'external-30333863.db is my memory cards database yours will be "external-" & cardid
'I found the value for cardid in "data/data/com.android.music/shared_prefs/Music.xml"
'code for finding cardid is included in this post
If File.Exists("","data/data/com.android.providers.media/databases/external-30333863.db") Then
File.Copy("","data/data/com.android.providers.media/databases/external-30333863.db",File.DirDefaultExternal,"test.db")
End If
End Sub
similarly:Java.IO.FileNotFound.Exception: data/data/com.android.providers.media/databases/external-30333863.db (Permission Denied)
Sub Activity_Create(FirstTime As Boolean)
If File.Exists("","data/data/com.android.providers.media/databases/external-30333863.db") Then
File.OpenInput("","data/data/com.android.providers.media/databases/external-30333863.db")
End If
End Sub
Sub Activity_Create(FirstTime As Boolean)
If File.Exists("","data/data/com.android.providers.media/databases/external-30333863.db") Then
Dim SQL As SQL
SQL.Initialize ("","data/data/com.android.providers.media/databases/external-30333863.db",False)
End If
End Sub
I put my issues here because anaylor01 was having similar problems accessing a similar database (however his where settings which are also included in the link below). I believe that a lot of these databases should be readable (even if they are not marked as), I'm pretty sure that there are classes that enable you to get information in java:android.database.sqlite.SQlite.Exception: Unable to Open Database File
You are not meant to be able to directly access these databases
My device is rooted, I don't see how changing my permissions will help me (or anyone else) make a marketable app? Was I completely wrong about my manifest controling what permissions I have?There is none. Unless you root your device so you can change the permissions you will need to write a library and if you can't do that hope that one comes along someday.
Please, pretty please, please, please, please?I actually have a ContactProvider library written for MediaStore.Files that can get this data but that only works on Android 3.0 or later. I might look at letting it use other ContentProviders so it will work on earlier devices.
It won't.My device is rooted, I don't see how changing my permissions will help me (or anyone else) make a marketable app?
Yes.Was I completely wrong about my manifest controling what permissions I have?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?