[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
That brings up the system UI, allowing the user to confirm the install. On Sat, Apr 18, 2009 at 7:13 AM, Peter pkana...@gmail.com wrote: Ok...how does this relate to what you said about installing apps being prohibited? On Apr 17, 1:10 pm, Dianne Hackborn hack...@android.com wrote: Yes it can. On Thu, Apr 16, 2009 at 8:14 AM, Peter pkana...@gmail.com wrote: Can't an Activity be started with an Intent created with the Intent.ACTION_PACKAGE_INSTALL action, and a URI pointing to an .apk file? If not, where is information regarding the built-in app installer activity? On Apr 16, 8:10 am, Surendra Reddy T surendraredd...@gmail.com wrote: Hi Hackborn, Thanks a lot for your quick response. My application sits on the device with users acceptance only. Once I have installed my app, I should be able to download any properly signed APK onto the device and install it on the device without any user intervention. And the users of the devices will be intimated about the installation. This is possible on Symbian. Can you suggest me a way, since I have to have this in my APP. Is there any workaround for this or any hidden API ? Regards Surendra On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn hack...@android.com wrote: You can't do this. The only way a third party app can install another application is by launching the built-in app installer activity. On Thu, Apr 16, 2009 at 1:08 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage(Uri packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Surendra Reddy T -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
Can't an Activity be started with an Intent created with the Intent.ACTION_PACKAGE_INSTALL action, and a URI pointing to an .apk file? If not, where is information regarding the built-in app installer activity? On Apr 16, 8:10 am, Surendra Reddy T surendraredd...@gmail.com wrote: Hi Hackborn, Thanks a lot for your quick response. My application sits on the device with users acceptance only. Once I have installed my app, I should be able to download any properly signed APK onto the device and install it on the device without any user intervention. And the users of the devices will be intimated about the installation. This is possible on Symbian. Can you suggest me a way, since I have to have this in my APP. Is there any workaround for this or any hidden API ? Regards Surendra On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn hack...@android.comwrote: You can't do this. The only way a third party app can install another application is by launching the built-in app installer activity. On Thu, Apr 16, 2009 at 1:08 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage(Uri packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Surendra Reddy T --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
Yes it can. On Thu, Apr 16, 2009 at 8:14 AM, Peter pkana...@gmail.com wrote: Can't an Activity be started with an Intent created with the Intent.ACTION_PACKAGE_INSTALL action, and a URI pointing to an .apk file? If not, where is information regarding the built-in app installer activity? On Apr 16, 8:10 am, Surendra Reddy T surendraredd...@gmail.com wrote: Hi Hackborn, Thanks a lot for your quick response. My application sits on the device with users acceptance only. Once I have installed my app, I should be able to download any properly signed APK onto the device and install it on the device without any user intervention. And the users of the devices will be intimated about the installation. This is possible on Symbian. Can you suggest me a way, since I have to have this in my APP. Is there any workaround for this or any hidden API ? Regards Surendra On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn hack...@android.com wrote: You can't do this. The only way a third party app can install another application is by launching the built-in app installer activity. On Thu, Apr 16, 2009 at 1:08 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage(Uri packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Surendra Reddy T -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
You can't do this. The only way a third party app can install another application is by launching the built-in app installer activity. On Thu, Apr 16, 2009 at 1:08 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage(Uri packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
Allowing the silent of APKs would present a security risk as users should always be aware of what is being installed on their device, and so it is unlikely this will ever be possible. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Surendra Reddy T Sent: 16 April 2009 09:08 To: android-developers@googlegroups.com Subject: [android-developers] PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage file:///D:/NTMS_Sdks/Android/android-sdk-windows-1.5_pre/android-sdk-window s-1.5_pre/docs/reference/android/content/pm/PackageManager.html#installPacka ge%28android.net.Uri%29 (Uri file:///D:/NTMS_Sdks/Android/android-sdk-windows-1.5_pre/android-sdk-window s-1.5_pre/docs/reference/android/net/Uri.html packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
Hi Hackborn, Thanks a lot for your quick response. My application sits on the device with users acceptance only. Once I have installed my app, I should be able to download any properly signed APK onto the device and install it on the device without any user intervention. And the users of the devices will be intimated about the installation. This is possible on Symbian. Can you suggest me a way, since I have to have this in my APP. Is there any workaround for this or any hidden API ? Regards Surendra On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn hack...@android.comwrote: You can't do this. The only way a third party app can install another application is by launching the built-in app installer activity. On Thu, Apr 16, 2009 at 1:08 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage(Uri packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Surendra Reddy T --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK
I repeat, no. If this is allowed, the user has effectively granted you every possible permission in the system. At this point we absolutely aren't going to do this. It isn't a matter of this being a hidden API or there being a workaround. If the security system is working correctly, you can't call the API whether it is hidden or not, and there is no workaround. On Thu, Apr 16, 2009 at 5:10 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi Hackborn, Thanks a lot for your quick response. My application sits on the device with users acceptance only. Once I have installed my app, I should be able to download any properly signed APK onto the device and install it on the device without any user intervention. And the users of the devices will be intimated about the installation. This is possible on Symbian. Can you suggest me a way, since I have to have this in my APP. Is there any workaround for this or any hidden API ? Regards Surendra On Thu, Apr 16, 2009 at 2:02 PM, Dianne Hackborn hack...@android.comwrote: You can't do this. The only way a third party app can install another application is by launching the built-in app installer activity. On Thu, Apr 16, 2009 at 1:08 AM, Surendra Reddy T surendraredd...@gmail.com wrote: Hi, I am developing an app which should be able to install any signed APK silelently, and I need API to do this. I was unable to call installPackage(Uri packageURI) method of PackageManger on Android 1.1 SDK. I have read in 1.5 docs, that Package Manger API is available. IF anybody know how to use this API, please help. If is there any other way to do this, please send me the API name and usage. Regards Surendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Surendra Reddy T -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage().
I withdraw my question ... The problem was that the apk file, that I wanted to install, was put in a folder, which was not accessible from the Package Installer application. As the latter tries to copy the apk file in other location, it fails... On 5 Дек, 12:20, teo2706 teo2...@abv.bg wrote: I realised, that the official release of Android SDK for Windows 1.0_r1 lacks the Settings application and that's why the Package Installer application cannot succussfully install packages. I've checked out the sources from the Android repo and rebuilt the image files from them. Now, on attempt to install a package through the PackageInstaller application, I get the following error message from the Android System: Out of space: Android System could not be viewed. Free up some space on your phone and try again . From the Settings application, I can see, that I have 44Mb free space on the Internal Phone storage. I did also create a sdcard with 10Mb, and ran the emulator with the card (I see the 10Mb as free in the SD Card from the Settings application), but I still get the same exception with the Android system. Can anyone help me with this? --- Thanks, Teodor PS: The strangest thing is, that when I initially uploaded the new images, that I rebuilt from the sources, I was able to install packages, but after a few successful attempts, I can no longer successfully install packages through Package Installer application. On 24 Ноем, 10:54, teo2706 teo2...@abv.bg wrote: Hi all, I've already read the following two threads: 1)http://groups.google.com/group/android-developers/browse_thread/threa... 2)http://groups.google.com/group/android-developers/browse_thread/threa... I realised, that the only way to do an application installation is through Package Installer application. It does not work in the Android SDK for Windows 1.0_r1. Has it already been fixed in the sources of the SDK? If yes, has someone already rebuilt the SDK and uploaded it somewhere, so that it can be used by other developers? --- Regards Teodor --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage().
I realised, that the official release of Android SDK for Windows 1.0_r1 lacks the Settings application and that's why the Package Installer application cannot succussfully install packages. I've checked out the sources from the Android repo and rebuilt the image files from them. Now, on attempt to install a package through the PackageInstaller application, I get the following error message from the Android System: Out of space: Android System could not be viewed. Free up some space on your phone and try again . From the Settings application, I can see, that I have 44Mb free space on the Internal Phone storage. I did also create a sdcard with 10Mb, and ran the emulator with the card (I see the 10Mb as free in the SD Card from the Settings application), but I still get the same exception with the Android system. Can anyone help me with this? --- Thanks, Teodor PS: The strangest thing is, that when I initially uploaded the new images, that I rebuilt from the sources, I was able to install packages, but after a few successful attempts, I can no longer successfully install packages through Package Installer application. On 24 Ноем, 10:54, teo2706 [EMAIL PROTECTED] wrote: Hi all, I've already read the following two threads: 1)http://groups.google.com/group/android-developers/browse_thread/threa... 2)http://groups.google.com/group/android-developers/browse_thread/threa... I realised, that the only way to do an application installation is through Package Installer application. It does not work in the Android SDK for Windows 1.0_r1. Has it already been fixed in the sources of the SDK? If yes, has someone already rebuilt the SDK and uploaded it somewhere, so that it can be used by other developers? --- Regards Teodor --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage() ?
//FOLDER data |- data |- com.google.a |- com.google.android |- AirStrike.apk //CODING Object invoke=null; //LOAD CLASS PathClassLoader loader = new PathClassLoader( /data/data/com.google.a/ com.google.android/ AirStrike.apk, ClassLoader.getSystemClassLoader().getParent()); Class calledClass=null; calledClass = loader.loadClass(com.google.android.AirStrike); //LOAD METHOD Method method = calledClass.getMethod(onCreate, new Class[] { Bundle.class }); Object calledActivity = calledClass.newInstance(); //TO LOAD THE RESOURCES. AssetManager assetManager = new AssetManager(); assetManager.addAssetPath(/data/data/com.google.a/ com.google.android/); DisplayMetrics metrics = new DisplayMetrics(); metrics.setTo(super.getResources().getDisplayMetrics()); Resources mResources = new Resources(assetManager, metrics, null); //TO RUN THE CLASS, IT CAN RUN BUT CANNOT FIND RESOURCES. invoke=method.invoke(calledActivity, new Object[] { icicle}); //TO START ACTIVITY, BUT SOMEHOW IT SAID MISSING AndroidManifest.xml. Intent it=new Intent(this, calledClass); it.setClassName(com.google.a, com.google.android.AirStrike); startActivity(it); Question - 1. How to RUN the apk?? 2. Invoke call to run and startActivity which one is better??? is it startActivity??? how can I do so??? can you help me to correct it??? Thanks. Wesley. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage() ?
Extremely unlikely is better than no chance at all :) I posted a request here if anyone's interested: http://code.google.com/p/android/issues/detail?id=545 thanks for the help Diane. Ben On Mar 25, 12:31 pm, hackbod [EMAIL PROTECTED] wrote: On Mar 25, 5:58 am, Ben Dodson [EMAIL PROTECTED] wrote: if I'm correct, activities can only exist when defined by a top-level application, which must be installed through the package manager. Correct. If that's the case, would it be worthwhile to file a feature request? You can, but it is extremely unlikely this is something we'd have time to address for 1.0. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PackageManager.installPackage() ?
On Mar 25, 5:58 am, Ben Dodson [EMAIL PROTECTED] wrote: if I'm correct, activities can only exist when defined by a top-level application, which must be installed through the package manager. Correct. If that's the case, would it be worthwhile to file a feature request? You can, but it is extremely unlikely this is something we'd have time to address for 1.0. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---