How install/ uninstall apk android with phoneGap?
Solution 1
PhoneGap, which is now known as Apache Cordova, depends on the standard Android SDK for Android development. As such, installation works the same way as for "native" Android applications (see the "Deploy to" sections in the Getting Started with Android guide). Besides using Eclipse, you can also use some Cordova helper scripts to deploy applications, or simply use the Android SDK's adb (un)install directly.
If you question is whether PhoneGap offers an API to programmatically (un)install an application, the answer is no. This can only be done with "native" code and some tricks.
Solution 2
You can e-mail the apk to you and open the attachment on the device. Android will see that the file is an android application and ask you if you want to install it on your device.
Note that if you do this you have to allow third party applications to be installed on your device. In the developer options you have to enable applications from unkown sources.
To uninstall you have to follow the same steps as any other application on your device. Go to settings -> applications => find app => uninstall
If you have the phonegap app imported in eclipse you can run directly to the device as native android apps.
also check out: http://droidlessons.com/how-to-install-non-market-third-party-apps-on-android/
lady android
Updated on June 27, 2022Comments
-
lady android almost 2 years
Is there any way to install and to uninstall an android apk using phoneGap?