[android-developers] Re : Re: Application installation

2011-06-27 Thread Jérôme Beau
Hello, By debugging against the Android code, I can find that the native activity manager returns -1 when asked to : startActivity ( applicationThread, Intent { act=android.intent.action.PACKAGE_INSTALL dat=/android_asset/Android-release.apk

[android-developers] Re : Re: Application installation

2011-06-27 Thread Jérôme Beau
By debugging the Android source code, I can see that the native activity manager returns -1 (IActivityManager.START_INTENT_NOT_RESOLVED), when asked to: startActivity( android.app.ActivityThread$ApplicationThread@40513a00, Intent { act=android.intent.action.PACKAGE_INSTALL

Re: [android-developers] Re : Re: Application installation

2011-06-27 Thread Dianne Hackborn
You can't do this. You must go through the UI. 2011/6/27 Jérôme Beau javar...@gmail.com By debugging the Android source code, I can see that the native activity manager returns -1 (IActivityManager.START_INTENT_NOT_RESOLVED), when asked to: startActivity(

Re : Re: [android-developers] Re : Re: Application installation

2011-06-01 Thread Jérôme Beau
Hi Maha, I tried your suggestion in case of, and this produces exactly the same error. Actually this doesn't surprise me, as I understand the message meaning I did not found any activity listening to the PACKAGE_INSTALL intent, so it does not even try to use the file parameter (only such an

[android-developers] Re : Re: Application installation

2011-06-01 Thread Jérôme Beau
May I add that I am aware of the VIEW action alternative, but that this is *not* what I want to do. I want to install an application dynamically and without user interaction, and I have platform privileges to do so (but without being a system app though). -- You received this message because

[android-developers] Re : Re: Application installation

2011-05-31 Thread Jérôme Beau
Hello Mah and all, I have exactly the same problem as Surfer has, with the two conditions you mention met. I have sign my application with the platform (SDK for the moment, a real one later on) key+cert, and have android:sharedUserId=android.uid.system (as well as the granted

Re: [android-developers] Re : Re: Application installation

2011-05-31 Thread maha rm
Hi, Looks like the path of apk is wrong and it shoudn't be start with file:/// protocol. Place your apk in android_asset and give the path direclty like Uri.parse(/android_asset/otherApk.apk Thanks, Maha 2011/5/31 Jérôme Beau javar...@gmail.com Hello Mah and all, I have exactly