Send Intent with adb shell am
Posted: Thu Jul 15, 2010 4:15 pm
Hi,
I would like send an Intent via adb to download a file from an Host machine (automation tests) using the "activity manager".
Here are the traces :
> adb -s emulator-5554 shell am start -D -a ACTION_PICK -d ftp://192.168.0.50 -t vnd.android.cursor.dir/lysesoft.andftp.uri -es command_type download -es progress_title "Downloading files ..." -es remote_file1 get10k -es local_folder /sdcard/
Starting: Intent { act=ACTION_PICK dat=ftp://192.168.0.50/ typ=vnd.android.cursor.dir/lysesoft.andftp.uri }
Error: Activity not started, unable to resolve Intent { act=ACTION_PICK dat=ftp://192.168.0.50/ typ=vnd.android.cursor.dir/lysesoft.andftp.uri flg=0x10000000 }
Is it possible to do that or the Intent must be sent by an Android application, as it is written in the FAQ ?
Thanks,
Chris
I would like send an Intent via adb to download a file from an Host machine (automation tests) using the "activity manager".
Here are the traces :
> adb -s emulator-5554 shell am start -D -a ACTION_PICK -d ftp://192.168.0.50 -t vnd.android.cursor.dir/lysesoft.andftp.uri -es command_type download -es progress_title "Downloading files ..." -es remote_file1 get10k -es local_folder /sdcard/
Starting: Intent { act=ACTION_PICK dat=ftp://192.168.0.50/ typ=vnd.android.cursor.dir/lysesoft.andftp.uri }
Error: Activity not started, unable to resolve Intent { act=ACTION_PICK dat=ftp://192.168.0.50/ typ=vnd.android.cursor.dir/lysesoft.andftp.uri flg=0x10000000 }
Is it possible to do that or the Intent must be sent by an Android application, as it is written in the FAQ ?
Thanks,
Chris