title: Robotium Drag does not work
body: <p>I have written a game using AndEngine that I want to test using Robotium. The problem is that robotium's drag function does not work. I have the robotum 4.0 jar added to the build path and exported, and my manifest file 
  seems to be correct. The second test(joystick) fails as the movement never takes place. This is the test class:</p>
  
  <pre><code>package cs428.uiuc.robotswarms.test;
  
      import junit.framework.Assert;
  
      import org.andengine.entity.sprite.AnimatedSprite;
  
  
      import com.jayway.android.robotium.solo.Solo;
  
  
      import cs428.uiuc.robotswarms.RobotSwarms;
  
      import android.test.ActivityInstrumentationTestCase2;
  
  
      public class testMotion extends ActivityInstrumentationTestCase2&lt;RobotSwarms&gt; {
  
  public testMotion() {
      super(RobotSwarms.class);
  }
  
  private Solo solo;
  
  protected void setUp() throws Exception {
      super.setUp();
      setActivityInitialTouchMode(true);
      solo = new Solo(getInstrumentation(), getActivity());
  }
  
  protected void tearDown() throws Exception {
      solo.finishOpenedActivities();
      super.tearDown();
  }
  
  private void waitForSpriteInitialisation(RobotSwarms ActivityData) {
      while (ActivityData.getPlayerSprite() == null) {
  
      }
  }
  
  public void testJoystickMovement() {
      RobotSwarms ActivityData = getActivity();
      final float fromX = 400.0f;
      float toX = 380.0f;
      final float fromY = 208.0f;
      float toY = 208.0f;
      AnimatedSprite playerSprite;
      waitForSpriteInitialisation(ActivityData);
      playerSprite = ActivityData.getPlayerSprite();
      float initialPlayerXPosition = playerSprite.getX();
      solo.sleep(2000);
      solo.drag(fromX, toX, fromY, toY, 5);
      solo.sleep(2000);
  
      playerSprite = ActivityData.getPlayerSprite();
  
      float playerMovedX = playerSprite.getX();
      Assert.assertTrue(playerMovedX != initialPlayerXPosition);
  
  }
  
  
  }
  </code></pre>
  
  <p>Target application manifest file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="cs428.uiuc.robotswarms"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="17" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" android:debuggable="true"&gt;
      &lt;activity
          android:name="cs428.uiuc.robotswarms.RobotSwarms"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Test project manifest file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="cs428.uiuc.robotswarms.test"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
  &lt;instrumentation
      android:name="android.test.InstrumentationTestRunner"
      android:targetPackage="cs428.uiuc.robotswarms" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;uses-library android:name="android.test.runner" /&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have tried using TouchUtils instead of Robotium but that does not seem to work either.
  Edit: Bump</p>