How install/ uninstall apk android with phoneGap? - android

Is there any way to install and to uninstall an android apk using phoneGap?

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.

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/

Related

Side Loading on IOS Device

I have a Question regarding side loading apps created with React Native (Expo).
I have build my app and uploaded it on the Expo Servers. I managed to side load the App on an Android Device without any problems. Even Over the Air updates run perfectly!
Now my question is if someone has ever managed to side load an app on an IOS Device? Is this even possible?
Its pretty simple on Android but as I know IOS it wont be easy on there because they always make your life extra hard :D
If someone has a guide or some reference on how to side load an Expo app I would really appreciate it.
Edit: I checked out this link: https://docs.expo.io/distribution/building-standalone-apps/ - which says that it can be done with XCode somehow.
As I dont have a Mac and I never want to own a Mac is it possible to do this via a VM maybe?
Thanks ~Faded
It's not hard if you have Xcode. There's a few steps here, but it's not difficult.
Do an archive build in Xcode.
Right click the build in Xcode->Archive and select "Show in Finder"
Right click the .xcarchive in Finder frand "Show Package Contents"
Navigate to Product->Applications. There will be a .app file in there.
Connect your phone to your Mac if you haven't already
Open Xcode->Devices & Simulators
Select your phone
Drag the .app from the Finder onto the "INSTALLED APPS". This will install the app on the device
Sorry, just reread the OP. I guess if you can get the xcarchive or .app from Expo you should be able to side load it using the last few steps
There are few options to load app but they require either macOS system or paid Apple developer account.
You can build in xcode if you have access to native sources, so it wouldn't work with expo managed workflow, but it's possible if you eject. (macOS required)
You can create simulator build expo build:ios -t simulator (it will work only on simulator) (macOS required)
You can create adhoc provisioning profile and use it for build, it will be possible to install that app only on devices registered on your apple account. (requires paid Apple developer account)
You can side-load builds if you have enterprise Apple account

How to install android studio created app on mobile without connecting it to system

I want to copy apk file from android studio project on my mobile without connecting it to any machine.
what is path of that apk file.
You can send it to your mobile via emailing and then install it by clicking the attachment.
PS: You need your developer options in enabled mode and your install app from un-trusted source must be enable as well.
PSS: Please google properly before asking question.

How can my friends test my Android application?

I am developing an Android application and it is not finished. I would like to test it on multiple devices, locations with various users that are not near me. How can I achieve this? Is there an APK I can send them? Is there a way that is as simple as plugging my phone in and then running the application from Eclipse? Or would I have to make an installer of some sort (I don't know)?
Obviously you can plug your phone(s) into the machine you are developing on and run it from eclipse. This will allow you to test and debug on the devices you have access to.
You can also export an apk from eclipse (see the android pages for instructions). You could put this up on a file sharing site and make it available to your friends. They could then install it, as long as they have authorised "unsigned" apks to be installed in their phone settings.
Assuming you have deployed the app at least once from within Eclipse to debug and test yourself, you will most likely have an APK under the bin directory in your Eclipse project. The file should be .apk. This APK will have been signed automatically by Eclipse with your debug key. This is obviously not the key you use for publishing but for testing among friends I think it's fine.
What I often do is just e-mail that APK file as an attachment to my friends to an e-mail account they have setup on their phone. Then all they need to do on their phone is make sure they have the system setting to allow installation of non-market apps (i.e. not from Google Play), which maybe named something slightly different like "allow 3rd party apps". Then they can simply click on the app attachment in their e-mail, download it and run it and they should automatically be prompted with instructions to install it.
I just used MyAppSharer. (I believe there are other similar apps out there - this is just the one I've used and is very simple/easy:
...you can share by market link or directly share APK (App's full
package)
I just used that, and sent my app via apk file to my coworkers. Can't get much simpler.
Just install the app on your phone via Eclipse, then run this AppSharer, and voila - share it w/ anyone!
You can can easily export your project as an APK in eclipse
File -> Export -> Export Android Project

Is it necessary to have SL4A pre-installed on the android device to run apps developed in python?

I understand that we need to install in the device we test, Once we start distributing the app, Is it necessary that the clients' Android device has SL4A previously installed or can we pack it with the application?
You can create an APK with an embedded interpreter, so there is no need for SL4A installed.
Instructions are here.

Android and Unity 3D game development

I am starting to explore the game development using unity 3d for android. I have downloaded the trial version of unity 3.3. I went through few tutorials.
I have one question that is not answered. In the normal apps which we develop using eclipse, we can deploy onto mobile by copying the apk file. What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
It is possible to transfer your assets to Eclipse. When it's integrated you can debug via your android phone. Be sure to read the tutorial on Unity's homepage. There is a step by step start-up guide and some more. Following links are worth looking at:
Getting started with Unity and Android
Official - Integrating Unity with Eclipse
Alternative link - Integrating Unity with Eclipse
It would seem that the official "integration" link is broken so I updated with a forum post that covers the same topic. However I recommend to try with the official link first.
Yes, you can simply copy the apk to your device and install it. Unity builds an apk file (and will optionally sign it using a keystore that you provide or let it generate for you). Once it has built that apk you can deploy it normally. You can even have it include a customized manifest in the apk that it builds if you want to (but it generates a nice one from your settings in the unity project by default).
There are two methods for this, as far i understand,
Using Build Settings--> Build, It builds the apk file that can be installed on your device using adb install <apk file path and name>
Using Build Settigs--> Build and Run. Which automatically installs the apk built apk file on your device if connected
go to file
-build
-select android platform(your pc has to have android development kit)
-save your apk
As it is still unanswered I try to close this question
First of all, current version of Unity 5.2 is much more powerfull than version 3.3. mentioned in original question.
What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
The same way. Unity allows you to publish build as *.apk on ocal machine and then you can just copy it to your phone and install it.
What is more cool, now you can debug your application running on phone. You have to install Unity Remote to the phone and run. Now you can set breakpoints and debug as normally.
If you change your mind and go to publish on Market - Unity will sign your *.apk
Hope this helps someone, good luck!
The Same way you generate the apk through Eclipse like that in unity you need to build the project. For that android sdk and jdk should be installed in your system and u need to show those path in the unity Preferences then u need a google keystore and need to sign in with that key store in the Publisher settings and then u are able to build the apk which will be store in your local system and you can copy that to your mobile and install the apk file.

Categories

Resources