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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:26:17+00:00 2026-06-01T02:26:17+00:00

I have an application with like 400 records in the database, I have splash

  • 0

I have an application with like 400 records in the database, I have splash screen in the beginning, I have AsyncTask inserting the data in the database and onPostExecute() I close the splash screen and the application goes. Ofcourse I want this to happen only one time so when the user open the app in another time he don’t occur duplication of data. So I created boolean SharedPrefernces for first visit. Now the question is, suppose I updated the application in the market, the user will have to replace the application, does the sharedprefernces value get back to the default?

I know that I have to insert the data inside onCreate() of the database handler/helper but it takes time to insert 400 records with many fields, so I made the splash screen with background execution.

Please tell me if what i’m doing is OK or I need to change the structure and put the insertion inside onCreate().

Thank you.

  • 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-06-01T02:26:19+00:00Added an answer on June 1, 2026 at 2:26 am

    SharedPreferences and all of the app’s data (such as sql databases) are maintained through app upgrades. The only time that data will be deleted or reset is if the user uninstalls the app.

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

Sidebar

Related Questions

I have like 400 records on my database, suppose this is the first version
Suppose that you have a big Data Entry Web Application Like Microsoft CRM ,
I'd like my application to have a full-screen mode. What is the easiest way
I have an Oracle database (roughly 1.2 billion records) of data with a web
I have an application I would like to force SSL on the login page
I have a databound TextBox in my application like so: (The type of Height
Hi I have an application that operations like this.. Client <----> Server <----> Monitor
I have a tab-bar and navigation controller application (like Youtube app or Contacts app).
I'd like to have my application be able to add bookmarks to safari programmatically,
I have an application that I would like to embed inside our companies CMS.

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.