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. want to receive intent of phone ringing!! help!!

hi,
i want my program to start if the phone rings, so i want to receive
that action but cannot find what you need in the manifest to get this
intent to start - please help!

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.android.IC">
    <application android:icon="@drawable/icon">
        <receiver android:name=".TestIncomingCall"
android:label="@string/app_name">
            <intent-filter>
                <action
android:name="android.intent.action.TESTINCOMING" />
            </intent-filter>
        </receiver>
    </application>
</manifest>
--~--~---------~--~----~------------~-------~--~----~

2. how to receive a phone call?? what do you need in manifest??

hi,
i want my program to start if the phone rings, so i want to receive
that action but cannot find what you need in the manifest to get this
intent to start - please help!

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.android.IC">
    <application android:icon="@drawable/icon">
        <receiver android:name=".TestIncomingCall"
android:label="@string/app_name">
            <intent-filter>
                <action
android:name="android.intent.action.TESTINCOMING" />
            </intent-filter>
        </receiver>
    </application>
</manifest>
--~--~---------~--~----~------------~-------~--~----~

3. Radio buttons' and checkboxes' text goes behind the buttons themselves?

4. android:text="#... bug?

5. Retrieving the location provider "gps" causes a NullPointerException in LocationManager.createProvider

6. Most basic UI crash

7. Radio buttons' and checkboxes' text goes behind the buttons themselves?