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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:33:38+00:00 2026-05-29T05:33:38+00:00

My Android app comes both as a free and paid version. I have created

  • 0

My Android app comes both as a free and paid version. I have created a library project and two additional Application projects, one ‘Free’ and one ‘Paid’ version (signed with the same key, of course). Note that these Application projects are pretty much empty, no settings etc. Hence, the library contains 99% of the code.

My app creates both an SQLite database and a SharedPreferences file with user data. Is it possible to copy these files between the free and paid versions? (The preferences are more important than the database.)

E.g.

  1. User runs the free version. A database and configuration file are created.
  2. User installs the paid version and runs it.
  3. The paid version checks for any free version data and copies it. This is what I want!
  • 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-29T05:33:39+00:00Added an answer on May 29, 2026 at 5:33 am
    1. Implement a ContentProvider to expose the stored data in your free version.
    2. Ensure the provider is exported (android:exported=”true”)
    3. Declare a permission in your client application. The protection level should be “signature”.
    4. Require the permission declared in (3) as a readPermission for the provider.
    5. In your paid app, add a uses-permission for the permission declared in your free app.
    6. Check for the presence of the provider & load the data into your paid app.

    This, of course, only works if you are signing the free and paid apps with the same cert (which most sane people do).

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

Sidebar

Related Questions

My android app has a two word app name, and the 2nd word doesn't
We have an Android app and a Web Service. We want to download part
I have an Android app with a ListActivity in the main view. The list
I created a native Android app that basically hosts a webView control. That webView
I have a List<CustomObject> (where CustomObject comes from an external library -- I can't
I have a PhoneGap app that I'm testing on webOS, Android, and iPhone. I'm
I am a total newbie when it comes to both java and android coding.
I am writing an application that needs to be supported on both android phones
i'm currently developing an app for both Android and iOS, thing is... I started
I'm in the stage of planning a new application for both iOS and Android

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.