0

I have my android app (with source codes, but I am not very experienced android programmer) and I need second small app, which will be able to backup (simply copy) whole database file from first app to folder on device. I think something like "content provider" must be implemented in the first app to allow second app to copy its database (to grant permissions). Could you point me please how to do it (implement content provider) and how to make second app?

It should be just icon and when I click on this icon it will copy database and shows toast "Database backed up.". That's it. P.S. tutorial is highly appreciated if possible.

5
  • 1
    follow this tutorial, vogella.com/tutorials/AndroidSQLite/article.html and academia.edu/4446368/… Commented Nov 15, 2016 at 7:10
  • Do you need 2 applications conformly means why can't you provide a widget of first application and when it is clicked copy the databse . Commented Nov 15, 2016 at 7:12
  • have a look at this, stackoverflow.com/questions/10718891/… and compiletimeerror.com/2013/12/… Commented Nov 15, 2016 at 7:14
  • @Narender Reddy because I need to be sure, if the first app collapses, I need to have second app as "emergency option to backup data". Commented Nov 15, 2016 at 7:15
  • copy that data into internal storage and hide that folder.so you can only means your's applications only access it Commented Nov 15, 2016 at 8:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.