Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to insert multiple data into DB  RSS feed

Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some data about primary schools for nation wide. So i want to insert those data into my application
but i am getting following errata most of times (Android 2.3 only)

android.database.sqlite.SQLiteException: error code 5: database is locked (or something like this becase logcat display to fast)
android.database.sqlite.SQLiteException: error code 8: attempt to write a readonly database

about second error. I am using db = new DatabaseConnection(context).getWritableDatabase(); but i am facing same problem.

this is my entire background progress.

Appreciate for any help.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!