Installation error: INSTALL_FAILED_INVALID_INSTALL_LOCATION
<p><a href="http://paulononaka.wordpress.com/2011/07/02/how-to-install-a-application-in-background-on-android/#comment-90" rel="nofollow">Install APK in Background</a></p>

<p><a href="https://github.com/paulononaka/Android-InstallInBackgroundSample" rel="nofollow">Git Hub : Source Code</a></p>

<p><code>google-certificate.keystore</code> present in certificate folder[See the above git link]</p>

<p>Step 1: I run the code in emulator its works fine [but i need to put that <code>google-certificate.keystore</code> location in custom debug keystore[which present in Eclipse -> Windows -> Preference -> Android -> bulit]</p>

<p>Step 2: if i didnt put the location it gives <code>java.lang.reflect.InvocationTargetException</code></p>

<p>if i connect developer cable and run it to Android device </p>

<p>if i follow step 1 it gives  <code>Installation error: INSTALL_FAILED_INVALID_INSTALL_LOCATION</code> in console window</p>

<p>if i follow step 2 it installs in device but give same Exception </p>

<p>Edit:</p>

<p><a href="http://paulononaka.wordpress.com/2011/10/19/apk-with-system-privileges/" rel="nofollow">Signed APK Guide</a></p>

<p>here is a step to create as an apk file but i dont where should i enter that command</p>

<p>Edit: Added Manifest.xml</p>

<pre><code> &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yal"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="15" /&gt;

    &lt;uses-permission android:name="android.permission.INSTALL_PACKAGES"/&gt;

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" &gt;
        &lt;activity
            android:name=".InstallInBackgroundSample"
            android:label="@string/title_activity_main" &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;

&lt;/manifest&gt;
</code></pre>
