Use : 
http://code.google.com/android/reference/android/database/sqlite/SQLiteOpenHelper.html

And open a writable database first so the tables can be created.

Al.

Evan JIANG wrote:
> I guess it`s permission problem. Why not access the settings through
> the SettingsProvider? Regards Evan
>
> 2008/11/5, Kingorcus <[EMAIL PROTECTED]>:
>   
>> db = SQLiteDatabase.openDatabase("/data/data/
>> com.android.providers.settings/databases/settings.db",
>> null,SQLiteDatabase.OPEN_READONLY);
>>
>>
>> I keep getting an exception "unable to open database file"
>>
>> any ideas
>>
>>     
>
> >
>   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to