0

I`m wondering how can I bypass android application manager shell command options, aka -d from Intelij run/debug configuration? So I will be able to start Activity which requires URL as data in Intent.

Something similar to: adb shell am start -d file:////storage/sdcard0/fileToOpen.txt -n some.package/some.Activity

4

1 に答える 1

0

So far I found that I can cheat during selecting an Activity and put:

some.package.Activity" -d "file:////storage/fileToOpen.txt

Key trick here is quotes just ignore error message, save configuration and run application. Trick is that InteliJ Idea will use string without any verification and will create following shell command:

DEVICE SHELL COMMAND: am start -n "some.package.Activity" -d "file:////storage/fileToOpen.txt"

I`m using idea - community 12.0.3

于 2013-02-12T12:41:48.707 に答える