Jump to content


Photo

Chapter8, Mydroidtest.py Transfer Error


  • Please log in to reply
3 replies to this topic

#1 ahnmh

ahnmh

    New Member

  • Members
  • Pip
  • 4 posts

Posted 29 August 2013 - 09:53 PM

I installed SDK successfully and follow the indications.

But the problem is that i cannot transfer the mydroidtest.py file to sdcard.

The operating system of my computer is Windows 7.

And I open the command program and type like below

C:\Users\ahn\Desktop\adt-bundle-windows\sdk\platform-tools\adb push mydroidtest.py \sdcard\sl4a\scripts

when I type this, the error comes like "device not found"

What should I do? I have read the other questions related to this but cannot solve this problem ;(

#2 paulbarry

paulbarry

    Advanced Member

  • O'Reilly Author
  • PipPipPipPipPipPipPipPip
  • 307 posts

Posted 29 August 2013 - 11:48 PM

Please refer to the end of the example command at the bottom of page 264. Your command should look like this:

C:\Users\ahn\Desktop\adt-bundle-windows\sdk\platform-tools\adb push mydroidtest.py /sdcard/sl4a/scripts

Note that the slashes at the end of this command are "/", not "\" (which is what you have). The device you are copying the file to is on Android, which is a version of Linux. Linus uses "/" to refer to the file-system. whereas Windows uses "\". The "device not found" message is reported by the adb tool because it can't find the location you specified on your Windows file-system, which isn't surprising as that's not where you want to copy the file. You want to copy it to the Android device.

Hope this helps.

--Paul.

#3 ahnmh

ahnmh

    New Member

  • Members
  • Pip
  • 4 posts

Posted 30 August 2013 - 01:18 AM

@Paul

It works now! Really thanks for your consideration.

Also I really thank you for writing this fabulous book.

Thanks a lot, :)

#4 paulbarry

paulbarry

    Advanced Member

  • O'Reilly Author
  • PipPipPipPipPipPipPipPip
  • 307 posts

Posted 30 August 2013 - 01:35 AM

You're welcome. Glad it worked out. Thanks for the kind words on my book. :-)

--Paul.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users