title: Parse Error - Installing apk programmatically
body: <p>I am trying to install an apk file programmatically. I referred this <a href="https://stackoverflow.com/questions/4967669/android-install-apk-programmatically">site</a> for doing it. </p>
  
  <p>Now the apk file is downloaded from an url and placed in SDCard. When I try to install it on the device using Intent method,</p>
  
  <p>It is popping up following error </p>
  
  <p>Emulator:</p>
  
  <pre><code> "Parse Error - There is a problem parsing the package",
  Logcat(W) : "Unable to read AndroidManifest.xml of /mnt/sdcard/download/myapp.apk",
  Logcat(W) : "java.ioException: AndroidManifest.xml",
  Logcat(W) : "Parse error when parsing manifest. Discontinuing installation".
  Logcat(E) : "java.lang.SecurityException",
  Logcat(E) : "java.lang.NullPointerException".
  </code></pre>
  
  <p>Note: 1) I was able to install the same .apk file using adb.
        2) I changed this .apk file to .pdf format before sending it to Server Team and then they changed it back to .apk. I am adding this coz there might be chances for error due to format conversion.</p>