phonegap emulate android , app not installed , how to initialize android simulator - android

I use phonegap build a app,and run phonegap emulate android, and I uninstall the app .
The next time I try to phonegap run android, It'll still open the same android , which the app uninstalled . That way , I can find the app, I mean how to initialize android simulator and debug the app again?
In one words , how to update the app on the android emulator?

In your command prompt
you can see which devices/emulators connected to your system using
adb devices
you can open avd-manager using
android avd
To start on configure new avd-emulator using cmd check this

I would say open up the Android emulator and uninstall the application like you would any Android app - using Android's native uninstall method. Ensure that you don't have differently (re)named versions of your app, and ensure you have them ALL uninstalled.
phonegap run android will run the same code base on Android each and every time, unless you update the code. Once you update the code and type phonegap run android again, it should run the updated code base.
At worst, reset your Android emulator.

Related

Cordova-react-android app with hot reload on emulator device

Does anyone have success with cordova/react hot reload functionality on an android device at 2021?
All replies I've found either is deprecated/broken or provide live reload on desktop version only, with no access to device features.
I create cordova project merged it with create-react-app and right now I'am able to check the changes on android emulator each time running cordova run android only.
Any help will be appreciated.

Nativescript app deploys, but doesn't appear on device

I'm just starting to learn Nativescript, cause I want to develop an app version of a site I made. I went through their tutorial, and had no problems there. Then I created my own app using tns create and then added the Android platform using tns platform add android. Then I created a few pages, and tried to run it with tns run android, and it will successfully build and says it's deployed on the correct device (either Genymotion or my S6), but the app will not show up at all.
I tried creating another app with the basic template tns create makes, and running just that as is, and that won't show up either. The sampleGroceries tutorial app continues to show up though.
What could I be missing?

See app changes in real time on real device

I have Eclipse with Android Development Kit (ADT) installed, and also SDK. I have connected my Venue7 tabled and enabled USB Debugging.
I've created a simple Hello World app and ran it on my Venue7.
Now is it possible to update the app via Eclipse and see the result #Venue7 in real time? Or do you I have to stop the app and start it again after each change?
When you install your program on your device you are doing just that - installing it. The .apk file you have there is an installation package (apk stands for android package) not an executable file. So yes you have to reinstall it each time you have made changes to the program.
On eclipse I believe you just click the run as android program as the other poster said.
If you are using for the first time, Just see the left side, in package explorer, right click on your package- Select Run As Android application.
You dont need to stop an app. Just Run it from eclipse
If you have made changes in source code and you want to see the effects, you no need to stop the app/device or emulator. But you need to re-run the package again.
You can do this by 2 ways:
Right-click project, run as Android application
CTRL+F11 is to run the application. But for this you have to apply pre-settings as below.
Windows>Preferences>Run/debug > Launching : Launch Operation; "Always launch the previously launched application"

Cordova app deployment on device

I'm using Eclipse to run my android mobile app. The problem is that when modify code the change not appear in the deployed app on device. Remain ever the same app on device.
If you are changing code in yourProject->www folder, then you need to build it first with command prompt /cli
OR you need to directly change the files in yourProject->platforms->...->www before running from Eclipse

How to launch cordova app from terminal

I don't ask how to run the app in a terminal from PC, but from the mobile only with a terminal emulator. I see the method for java app, but for the no-java app ?
On Android, Cordova (Phone Gap) is wrapped inside a Java app.
Launching the surrounding Java app will automatically launch the Cordova App.

Categories

Resources