Error on adb push

by guishenl...@gmail.com » Tue, 31 Mar 2009 11:08:47 GMT


Sponsored Links
 Hi all,
    When I tried to copy a file in my PC to the Android Emulator, I
used the command
"C:\Documents and Settings\Alioth>adb push D:\Data\Android\1.jpg \data
\data\".
But the it didn't work and the error message was
"failed to copy 'D:\Android\1.jpg' to '\data\data\': Read-only file
system".
I don't know what to do, can anyone help me ?
--~--~---------~--~----~------------~-------~--~----~



Error on adb push

by Mark Murphy » Tue, 31 Mar 2009 19:47:07 GMT


 


1. Android is Linux-based, so your path separator should be / instead of
\ in the final parameter on your adb push command.

2. You may not be able to push files to /data/data on the emulator. You
definitely cannot on a device. Your files do not belong there. Put them
in /data/data/your.package.here/files, where your.package.here is the
Java package associated with your Android application.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Error on adb push

by guishenl...@gmail.com » Wed, 01 Apr 2009 10:13:10 GMT


 Thanks for your help!





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Is it possible to start my service automaticaly after phone boots up.

hello,

     I want to write a service in my application. I hope the service
can automaticaly access to internet and update database after phone
boots up every time. The whole process is background and no any UI
for  user.
     Is it possible? there is any demo ?

    thanks.
--~--~---------~--~----~------------~-------~--~----~

2. Fwd: ADC 2 Partners

Building a complete social networking site by yourself will be asking for a
bit too much. And I believe team work brings in a synergy that makes the
whole challenge more fun than it is.

The next 2 months is going to be "entertaining" for sure. Can't wait to see
the drama unfold :D

Come join the freaks here!

3. How to set TrueType to a TextView from remote View

4. How many fingers?

5. how build an android class lib

6. Short question: Is HTC Dream multi-touch screen natively? Tks

7. ListPreference how to create Multi-Choice?