Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6133439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:13:44+00:00 2026-05-23T17:13:44+00:00

Hello android developers, I was struggling to get this work but failed and now

  • 0

Hello android developers,

I was struggling to get this work but failed and now want to have your advice for this bug. What the problem is I use the ‘update’ method from the ‘SQLiteDabase’ library and it does NOT ONLY work on the actual device.

The weird thing is it has no problem on the eclipse android emulator but only on actual devices. If anyone knows how to figure this out or have an advice, would you please help me? I really appreciate your any help for this question. Below codes are my method and error messages.


public void updateDBMessages(int column_no, String key, Object value){
        SQLiteDatabase db = getWritableDatabase();
        ContentValues table_value = new ContentValues();

        if(value.getClass().equals(String.class)){
            table_value.put(key, value.toString());
        }
        else if (value.getClass().equals(Integer.class)){
            table_value.put(key, (Integer)value);
        }

        // THE ERROR HAPPENS ON THIS COMMAND!!
        db.update(VM_TABLE_NAME, table_value, "_id="+column_no, null);      
    }

[Error message LOG]

07-05 08:10:39.721: ERROR/AndroidRuntime(10295): FATAL EXCEPTION: main
07-05 08:10:39.721: ERROR/AndroidRuntime(10295): android.database.sqlite.SQLiteDiskIOException: error code 10: disk I/O error
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:1727)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1656)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at ca.slipline.android.asterdroid.VoiceMailScreen.updateDBMessages(VoiceMailScreen.java:607)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at ca.slipline.android.asterdroid.VoiceMailScreen.access$9(VoiceMailScreen.java:594)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at ca.slipline.android.asterdroid.VoiceMailScreen$3.onClick(VoiceMailScreen.java:482)
07-05 08:10:39.721: ERROR/AndroidRuntime(10295):     at android.view.View.performClick(View.java:2501)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:13:44+00:00Added an answer on May 23, 2026 at 5:13 pm

    I found the solution. It was a sort of Android itself problem so I simply changed the ‘update’ method to ‘execSQL’ in order to update it manually with a SQL command ‘UPDATE’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following this tutorial https://developer.android.com/guide/tutorials/views/hello-tabwidget.html and have completed it. Now I would actually
I am trying to modify this example: http://developer.android.com/resources/tutorials/views/hello-gridview.html But instead of displaying images that
I've been following this tutorial: http://developer.android.com/resources/tutorials/views/hello-mapview.html but in onTap mContext is throwing a NullPointerException..
Hello I am compiling a program with make but I get the error of
I am a newbie android developer and so far have only got Hello World
I am following the Android Gallery tutorial ( http://developer.android.com/guide/tutorials/views/hello-gallery.html ) but instead of simple
i am trying to display google map on Android refering to this tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html
In the ImageAdapter class of this tutorial, http://developer.android.com/resources/tutorials/views/hello-gridview.html I would like to create and
I'm writing an android app and in it I want to have a sort
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.