Launch the Android app with the hardware turned on

I created a custom version of android.app.Instrumentation and modified my AndroidManifest.xml to use it.

However, when I run the application from eclipse, it does not seem to load my tool object (am logging and settings global (I know it's awful, just swear it now!) Variables that I check later)

It seems to me that I need to run it using adb and say that it uses tools, but I can’t find the correct instructions for this (and I read so much about tools in the last few days when I start to go crazy!)

+3
source share
1 answer

Run

   $ adb shell pm list instrumentation

to check if you have appliances. You will get something like

   instrumentation:my.pkg.text/my.instr (target=my.pkg)

then run

 $ adb shell am instrument -w my.pkg.test/my.instr
+6

All Articles