How to launch cordova app from terminal - android

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.

Related

Expo & Metro Bundler crash when attempting to open on Android Emulator

On a react-native project, since a few hours, I have a huge issue : Expo doesn't want to open my App on my android emulator.
I'm doing : expo start in the terminal,
I have the terminal interface with the QR Code
And when I press a to open on android, in my terminal I can see Opening on Android... and nothing happens
So I've tried to use the Metro Bundler graphic interface in the web browser to open my app and when I click on the button Run on Android device/emulator, I can see the message Attempting to open a simulator and nothing happens.
I've restarted my computer many times, I've tried npm run --clear-cache, expo r -c and still, nothing happen when I want to open my App on my emulator.
4 hours of trying to solve this and I found no solutions...
EDIT : I can use my Application on my iPhone using the Tunnel connexion
EDIT : When I try to open the Application on an android emulator, expo crashes. I can't even close it with CTRL+C on the terminal

how to deploy cordova app to android without auto-launching app?

Using the CLI is there any method to deploy/install an app to an android (or ios) device without the app auto launching? I need to test a scenario where a user deploys an app to the phone (say, via app store) but doesn't launch/open the app from the store (they just close store and go back to device....and first-run app another time)
Something like: cordova run android --target=x1233455 --no-run
I have tried:
cordova build android --device=x1233455
cordova build android --target=x1233455
I found a method via Xcode for iOS but haven't been able to find something for native cordova (or Ionic). It worked perfect for my testing. If a method is not available for cordova cli (for android), then is there a method to do this in Android Studio?
For anyone else that might need the solution to this (credit to: #MorrisonChang ):
adb -s <DEVICE ID> install <PATH TO APK>

Ionic Build or Ionic Run builds the wrong app

I am trying to build or run an Ionic Cordova App. But it always builds a default app with playlists.
OS is Windows 10
I do the following from my command prompt:
c:\users\martijn\documents\ionic start testapp blank
c:\users\martijn\documents\testapp\ionic run android
now it is building a different app then in my app directory. When I do ionic serve I see the right app in my browser. Can't figure out why running or building gives me a different app, I think it is a default example app.
Can somebody help?
See link here:
https://github.com/driftyco/ionic-cli/issues/1283
Appears you may have to delete the the last apk file from platforms\android\build\outputs\apk

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

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.

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

Categories

Resources