Thanks for your help!
On Mar 31, 7:46 pm, Mark Murphy <[email protected]> wrote:
> [email protected] wrote:
> > 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 ?
>
> 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!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---