To be able to install a package, one needs the
android.permission.INSTALL_PACKAGES permission.
http://developer.android.com/reference/android/Manifest.permission.html#INSTALL_PACKAGES
However, this is a permission of type SignatureOrSystem
http://developer.android.com/guide/topics/manifest/permission-element.html#plevel
Not typically available to normal third party developer apps.

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 15, 9:20 am, engin <[email protected]> wrote:
> Hi, how can I install .apk file by using java code. that is , we can
> install .apk from cmd
> "adb install program_name.apk" I wonder that how can we install .apk
> file bu using another program. To summarize I will have button and
> when user click it another program(in sdcard) will be installed to
> phone. Thanks for reply.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to