tags:

views:

43

answers:

0

I am quite new to Android

I use Instrumentation and adb shell commands to launch tests from my apk file on target.

I wish to create an intent from Command Line and make some operation in code on target upon it.

I know that I need to add an intent filter within my Manifest.xml file but can I add it if I have no activity in manifest.

I also know that I must monitore intent receive in my code on target but what should be writen in switch(msg.what) in handler ?

my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
          package="com.android.phonetests"
          android:sharedUserId="android.uid.myphonetest">   
  <application>
     <uses-library android:name="android.test.runner" />
  </application>

  <instrumentation android:name=".PhoneInstrumentationTestRunner"
      android:targetPackage="com.android.phone"
      android:label="Test runner for all the Phone tests that are instrumented.">
  </instrumentation>
</manifest>