[android-developers] PackageManager installPackage method throwing IllegalArgumentException

2012-02-27 Thread ashiq sayyad
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

[android-developers] packagemanager aidl files

2010-12-14 Thread tangke
hi all, I use the android 2.2 source code, but when I read the source code of packagemanager located in frameworks/base/core/java/android/content/pm/ there are some files such as PackageInfo.aidl, PackageInfoLite.aidl,so I wonder that aidl file name begin with the I letter, but these file are

[android-developers] PackageManager denies my app DEVICE_POWER permission

2010-07-15 Thread ls02
PackageManager denies my app DEVICE_POWER permission. I get in LogCat: PackageManager not granting android.permission.DEVICE_POWER to package Why does this happen? My app .apk file is signed and all other permissions are granted. -- You received this message because you are subscribed to

[android-developers] PackageManager ComponentInfo error getting assets?

2009-08-06 Thread Jason Proctor
my application caches static resources in its /assets directory and implements a content provider to provide them to a WebView on request. i kinda have to drive around the houses a bit because it seems i can't get a linear file descriptor on an asset, i get this resource is zipped or

[android-developers] PackageManager ComponentInfo error getting assets?

2009-08-06 Thread Jason Proctor
thanks for the response. (btw it used to work the other way round. did something change in r2 or r3?) i don't want to do it this way, trust me. i'm having to do this because i can't get a FileDescriptor to a file in /assets in my apk - i get a this file is zipped error or somesuch. so i get

[android-developers] PackageManager. get size of an installed package?

2009-02-12 Thread Grigory F.
Hi folks, i work on custom Application Manager and try to get the disk usage of installed package. So PackageManager.getpackageSizeInfo was removed from SDK on 0.9-1.0 update android.content.pm.PackageStats(String pkgName) (cacheSize, codeSize, dataSize) returns always 0 Size of phys. file

[android-developers] PackageManager??

2008-08-26 Thread Wesley Sagittarius
hi, Does anyone successful use the PackageManager to install apk??? wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to