Copy file into virtual machine

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Copy file into virtual machine

Postby XBarboX » Wed Feb 16, 2011 9:05 pm

Hi,
i created a sqlite database. Now i need to "upload" to the sdcard of my virtual devices.
I don't find anything on google.

Can anyone help me? Ty
XBarboX
Freshman
Freshman
 
Posts: 4
Joined: Mon Feb 14, 2011 9:11 pm

Top

Re: Copy file into virtual machine

Postby raj_J2ME » Thu Feb 17, 2011 8:18 am

XBarboX wrote:Hi,
i created a sqlite database. Now i need to "upload" to the sdcard of my virtual devices.
I don't find anything on google.

Can anyone help me? Ty


XBarboX, please explain your requirement in much more details... :)

You can read the data from the DB and write the same inside the file (after creating the file) in the file system.
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Copy file into virtual machine

Postby XBarboX » Thu Feb 17, 2011 6:02 pm

i created a database in sqlite on my computer(Ubuntu os).
Now i want transfer it to my virtual devices to use it in my program.

In other words i need to copy a file in the avd to use them.

I read that i need a .img file but it's hard convert a file to a single .img file....

There are other methods to use my database(saved on my pc) in the avd?
XBarboX
Freshman
Freshman
 
Posts: 4
Joined: Mon Feb 14, 2011 9:11 pm

Re: Copy file into virtual machine

Postby Uniser » Sun Feb 20, 2011 11:30 pm

1. start emulator
2. check your virtual device: adb devices
3. adb push my.db /sdcard/my.db
Uniser
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Feb 19, 2011 7:37 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 8 guests