[android-beginners] Re: How to install and run applications from within another application?

2009-07-10 Thread Yasser
For getLaunchIntentForPackage(), it says it is undefined for type PackageManager and hence code cannot compile? i can see the other methods when I put . after getPackageManager() except this one. Thanks Yasser On Jul 6, 10:39 am, Justin (Google Employee) j...@google.com wrote: How does the

[android-beginners] Re: How to install and run applications from within another application?

2009-07-06 Thread Justin (Google Employee)
How does the process for retrieving system rights look like? Its a matter of signatures. Whoever signs the system is also going to need to sign any app that wants system privileges. I suppose this problem shouldn't exist if I was able to save the .apk file in the private directory of my

[android-beginners] Re: How to install and run applications from within another application?

2009-07-02 Thread calleandersson
I have been testing with the 'file://' prefix and got the following results: When saving an .apk file in the private directory of my application and trying to invoke the system installation UI, an parse error occured due to permission issues: 07-02 07:15:27.826: WARN/zipro(726): Unable to open

[android-beginners] Re: How to install and run applications from within another application?

2009-07-02 Thread David Turner
On Wed, Jul 1, 2009 at 6:22 PM, calleandersson calleanders...@hotmail.comwrote: Is there somehow possible to simulate that an application has system rights in the Emulator? No, and very intentionally. --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: How to install and run applications from within another application?

2009-07-01 Thread Justin (Google Employee)
The package manager way will not work, you need the permission you referenced, INSTALL_PACKAGES, which only the system has and is not obtainable by user-installed applications. I think your Intent-based method should work, I believe this is more or less what the browser does when you download an

[android-beginners] Re: How to install and run applications from within another application?

2009-07-01 Thread calleandersson
Hi Justin, Thanks for the tips about the 'file://' prefix and SD card, I will look into that tomorrow. How does the process for retrieving system rights look like? Is it the manufacturer of an Android device which decides if an application should have system rights? I suppose that that kind of