Hello, tell me, please, how to programmatically copy the file from / to the android phone (Eclipse or Delphi development environment).

I will explain my question, I have a program written on delphi, it needs to copy the file to a computer, perform operations on it, and then copy again to the phone

  • You need to add the android tag. - stanislav

1 answer 1

If you are working with ADT Plugin for Eclipse, then you don’t have to do any additional actions on copying, installing and running the application on Android: Eclipse will do everything by itself. But besides Eclipse, you can explicitly use the Android SDK.

To install the application on the phone, run the command

adb install приложение.apk 

To transfer the file to the phone, run the command

 adb push файл место 

To overwrite the file from the phone, run

 adb pull место файл