Monday, February 27, 2012

[android-developers] PackageManager installPackage method throwing IllegalArgumentException

Hi,

I have one apk stored on sdcard .I am trying to install that apk on
phone using PackageManager installPackage method.But I am getting
IllegalArgumentException ..

method.invoke(pm, new Object[] {apkFile, observer,
INSTALL_REPLACE_EXISTING, null}); (using reflection..)

I have following permission in the manifest::

<uses-permission android:name="android.permission.INSTALL_PACKAGES"></
uses-permission>

Thanks & Regards,
Ashiq Sayyad

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment