Michael Jay
Michael Jay

Reputation: 31

How do I write to an Android application's database?

I ran into a problem developing an Android application.

When I read a database file in a folder in the application's files, and write to the DB, it worked. It didn't work on a real Android phone.

I don't know why it couldn't write the database into the phone. Does the application need more permissions other than these?:

<uses-permission android:name="android.permission.INTERNET" />  
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 

Upvotes: 1

Views: 1889

Answers (1)

Pedantic
Pedantic

Reputation: 5022

For a decent tutorial on using Android's built-in support for SQLite check out the Notepad tutorial. You don't need WRITE_EXTERNAL_STORAGE for database support, btw.

Upvotes: 1

Related Questions