andbook!.pdf - Learning Android Get an anddev.org - Android-Shirt Back to index
anddev.org Header Logo
FAQ Search Top rated articles Browse Feeds anddev.org - Authors Contact Details Register Log in

[TinyTut] - Pull/Push files from/to the Emulator (Eclipse)


 
       anddev.org - Android Development Community | Android Tutorials | Index -> Novice Tutorials
Author Message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Mon Nov 26, 2007 9:11 pm    Post subject: [TinyTut] - Pull/Push files from/to the Emulator (Eclipse) Reply with quote

[TinyTut] - Pull/Push files from/to the Emulator


What you learn: You will learn how push/pull Pull/Push files from/to the Emulator using the DDMS-View in Eclipse.

Difficulty: 0.5 of 5 Rolling Eyes

Description:
You can push/pull files from/to the emulator, by using the DDMS-View that comes with the ADT-Plugin for Eclipse.
Open the DDMS-View like in the picture. (If you cannot see the Button A points to, do it the B-Way).


Then open the File-Explorer Tab and open Push/Pull files as you wish. In this case we selected the '/data/misc/location/gps/nmea' (Mock LocationProvider) to pull it to from the emulator.


Alternative to PUSH:

Idea Emulator has to be open && Browse in Terminal/CommandLine to ".../android_sdk/tools"

Syntax: " adb push <local_source> <emulator_destination> "


Regards,
plusminus

_________________

| Android Development Community / Tutorials


Last edited by plusminus on Wed Nov 28, 2007 10:15 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nico
Junior Developer


Joined: 27 Nov 2007
Posts: 19
Location: Indonesia

PostPosted: Wed Nov 28, 2007 12:05 pm    Post subject: Reply with quote

i can do pull, but not push Sad
Quote:
Failed to push items
null


what's goin on?
Back to top
View user's profile Send private message Yahoo Messenger
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Wed Nov 28, 2007 9:36 pm    Post subject: Reply with quote

Hello nico, (nice name btw Wink )

added an alternative to push files, using a Terminal/CommandLine.
See above Rolling Eyes

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nico
Junior Developer


Joined: 27 Nov 2007
Posts: 19
Location: Indonesia

PostPosted: Thu Nov 29, 2007 6:18 am    Post subject: Reply with quote

Quote:
Hello nico, (nice name btw Wink )

hehe,thanks Wink

it worked! thanks a lot! u're great!! Very Happy
Back to top
View user's profile Send private message Yahoo Messenger
Gamby
Freshman


Joined: 26 Nov 2007
Posts: 7
Location: Italy

PostPosted: Thu Dec 20, 2007 4:04 pm    Post subject: Reply with quote

I don't really understand why the push button from DDMS persp doesn't work....

Is there a reason? Is there anyone who knows why?

grrrrrr Mad
Back to top
View user's profile Send private message MSN Messenger
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Thu Dec 20, 2007 4:27 pm    Post subject: Reply with quote

Hello Gamby,

I also do not know why it is still not working Sad
CommandLine-Pushing is a bit annoying, but it works always ^^

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hieunguyen
Freshman


Joined: 10 Jan 2008
Posts: 3
Location: Vietnam

PostPosted: Tue Jan 22, 2008 12:34 pm    Post subject: Reply with quote

Hi plusminus.

I have tried to use Commnandline to push file onto the emulator. But it did not work :



May you help me? I am looking to hearing you soon !

Regards.

_________________
Hieu Nguyen
Back to top
View user's profile Send private message
Ishtar
Experienced Developer


Joined: 16 Jan 2008
Posts: 50
Location: Netherlands

PostPosted: Tue Jan 22, 2008 5:58 pm    Post subject: Reply with quote

Err.. is there a reason you're pushing the files to /tmp? Because /tmp is used for temporarily data.
Quote:
/tmp - This directory contains mostly files that are required temporarily.
Many programs use this to create lock files and for temporary storage of
data. On some systems, this directory is cleared out at boot or at
shutdown

From: http://www.freeos.com/articles/3102/

I don't know how Android manages it's tmp folder, but it could be gone the next time you launch your emulator.

Ishtar
Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2067
Location: Germany

PostPosted: Tue Jan 22, 2008 7:13 pm    Post subject: Reply with quote

Hello Isthar,

exaxtly that was the reason for choosing "/tmp/", because of not creating useless data on your emu, you'll forget somewhen.

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
       anddev.org - Android Development Community | Android Tutorials | Index -> Novice Tutorials All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


© 2007, Android Development Community
All rights reserved.
Powered by phpBB.