On Fri, Sep 10, 2010 at 7:29 AM, Prince <pranjal.andr...@gmail.com> wrote: > I want to run adb commands like > "adb install application.apk" or "adb uinstall application.apk" > from my android application. > > Kindly help me out in this or provide some directions to perform this > task.
You can't run adb install or adb uninstall from your Android application. You can trigger the install process of an APK by calling startActivity() an ACTION_VIEW (?) Intent, with a Uri pointing to your APK file and the appropriate MIME type. This will give the user much the same experience as if they had downloaded the app off the Web -- it will prompt them to validate the permissions, then will install the app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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