title: Robotium: How an .apk app can be re-signed in order to test it with Robotium?
body: <p>I'm just trying to test an android application using Robotium. The issue I have is that I don't manage to re-sign the application in order to start a test project in Eclipse.
  I've followed the tutorial from <a href="http://code.google.com/p/robotium/wiki/RobotiumForAPKFiles" rel="nofollow">http://code.google.com/p/robotium/wiki/RobotiumForAPKFiles</a> but with no success.</p>
  
  <ol>
  <li>I've generated a .keystore file:
  keytool -genkey -v -keystore myCertificate1.keystore -alias myKey1 -keyalg RSA -keysize 2048 -validity 20000 </li>
  <li>Running the jarsigner command:
  jarsigner -verbose -keystore Certificate1.keystore path\appname.apk Key1 </li>
  <li>And I've got an error:
  Certificate chain not found for: Key1.  Key1 must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.</li>
  </ol>
  
  <p>Could anyone point me in any direction ?</p>