1

I see a sqllite database in another application, why can't I just just drag and drop from that application to mine in the eclipse environment? that way I can use data already in that database?

user2864740
  • 60,010
  • 15
  • 145
  • 220
user998548
  • 175
  • 1
  • 10
  • Probably Android OS, Security Protocol. – Lucifer Feb 26 '14 at 04:29
  • This is essentially why they don't allow you to just pull a database in and drop it into the application. –  Feb 26 '14 at 04:31
  • Design time is about the *Eclipse Environment* (and Eclipse Projects), and has nothing to do with the *Android Runtime* (or Android Applications, excepting as such are split across Eclipse Projects). – user2864740 Feb 26 '14 at 05:02

2 Answers2

0

Noone has written an Eclipse plugin that does that. You can write one if you feel it is both useful and worth your time.

jeremyjjbrown
  • 7,772
  • 5
  • 43
  • 55
0

Android doesn't do too well with using an sqlite database file directly. Generally the way to go around it is to package an sqlite database as a resource and on first create of the app to load that resource and then connect to it and then copy all the data out of it. The downside of this is you are essentially doubling all your data.

If you are the publisher of the other app then you can list the database as a shared database to share between your apps.

Share SQLite database between 2 android apps?

Community
  • 1
  • 1