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 6730699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:26:23+00:00 2026-05-26T10:26:23+00:00

I am developing application that uses shared preferences and content provider. But everytime I

  • 0

I am developing application that uses shared preferences and content provider. But everytime I enter my application my shared preferences and db data are not there.

I am using acra for error reporting and from logs it seems it also have trouble accessing file:

10-05 21:19:00.868 E/ApplicationContext(11683): Couldn’t rename file /dbdata/databases/x.x.x/shared_prefs/x.x.x_preferences.xml to backup file /dbdata/databases/x.x.x./shared_prefs/x.x.x_preferences.xml.bak

also database have hard time inserting data, here is an error:

10-05 21:19:01.770 E/Database(11683): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed

I have no idea what is creating this bug. It only happens on my phone, it works fine on emulator.

Here is phone spec:
Model number.. Samsung-sgh-i997
Firmware.. 2.2.1
Baseband.. I997UCKH1
kernel.. 2.6.32.9
Build.. FROYO.UCKH1

  • 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-26T10:26:24+00:00Added an answer on May 26, 2026 at 10:26 am

    There’s a buggy version of samsung ROMs. I have one… It affects Froyo 2.2.1 editions.

    I can’t find something else than this question right now.
    Just keep looking for samsung and shared preferences and you will find more.

    Basically there’s a bug which causes your application to lose write pemission to your shared preferences. There’s no pattern, it happens sometimes with all kind of apps and deletion of the affected folder and reinstall of the app always solves the problem (at least for me). This was driving me insane until I found out…

    The database error is something else and I don’t think that it relates to the first problem. You should check which constraint fails. Seems like a wrong query to me. Search for the affected code and post it here (try to narrow it down to the minimum required code)…

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

Sidebar

Related Questions

I'm developing an application using MS Visual C# 2008 Express that uses the ClickOnce
I'm developing an application that uses SQLite as the primary data storage method. I
I am developing a web application that uses Amazon Web Services. I am using
I'm developing a application that uses the twitter API. I'm currently using rspec with
I'm developing an application that uses webservices in python, both sides (server and client)
I'm developing a C# application that uses a handful of XML files and some
I'm developing a web application that uses an in-house SSO server for authentication. I
I'm developing a Java application that uses java.util.logging for its logging needs. This application
I'm developing a spring application that uses large MySQL tables. When loading large tables,
Hi I am developing a Qt application that uses a plugin (dynamic library) and

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.