1

I can pull the database in data/data/com..../ ... catalogue directly in emulator. But when I connect the mobile it can not.

I do not want to use file IO to write in this catalogue.

Is there some method pull directly? Or use some cmd command.

Thanks in advance!

DaringLi
  • 409
  • 2
  • 6
  • 16

2 Answers2

1

put your sqlite data base file into assets folder and copy this file into local memory......

try this link

http://androidrocksonmobility.blogspot.in/2011/09/how-to-get-sqlite-path-in-asset-folder.html

Anand
  • 2,875
  • 1
  • 18
  • 16
0

if your device is rooted. you should copy it to the SDCARD firstly. using:

  1. cat /data/data/com.*/database/*.db > /sdcard/dest.db
  2. pull it out.

if your device is not rooted. if you really want to copy it. copy it in your program.

Changwei Yao
  • 13,051
  • 3
  • 25
  • 22