Installation error: INSTALL_FAILED_INVALID_INSTALL_LOCATION

admin

Administrator
Staff member
<a href="http://paulononaka.wordpress.com/20...lication-in-background-on-android/#comment-90" rel="nofollow">Install APK in Background</a>

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

Code:
google-certificate.keystore
present in certificate folder[See the above git link]

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

Step 2: if i didnt put the location it gives
Code:
java.lang.reflect.InvocationTargetException

if i connect developer cable and run it to Android device

if i follow step 1 it gives
Code:
Installation error: INSTALL_FAILED_INVALID_INSTALL_LOCATION
in console window

if i follow step 2 it installs in device but give same Exception

Edit:

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

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

Edit: Added Manifest.xml

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;