Piping Print to the Console from Android Device

Monkey Targets Forums/Android/Piping Print to the Console from Android Device

AdamRedwoods(Posted 2012) [#1]
Modify trans.exe android target to pipe the Print output to the console instead of needing DDMS or something else to see output from your Android device when testing it.

add these commands after the adb stuff in the src/trans/targets/android.monkey and rebuild trans.exe

'' add this code after this command: If OPT_ACTION>=ACTION_RUN ,and after, Execute "adb kill-server",False
Execute "adb logcat -c",False
Execute "adb logcat [Monkey]:I *:S",False


pipes right to the console. you just have to manually stop the process.