I have phonegap install in my pc, the drivers of my android are installed as well
now i run:
phonegap run android
from within the project directory
"Waiting for emulator" message is recieved
how can i deploy the app directly to my android?
Seems the device is not conectect...
maybe the ADB driver is not working on the PC...
or you don't enable the USB debugging option on the device.
On the command line write: adb devices.
Related
After creating the release APK file into my app, I should follow the next lines to install an APK on a device:
Connect your Android device to your computer with a USB cable.
Enter cd <app dir> where <app dir> is your application directory.
Run flutter install
The problem I find, macOS doesn't recognize my device as external disk. I must do it through https://www.android.com/filetransfer/
Any solution?
Thanks for all.
You have to have USB-Debugging turned on on your device!
The following allows you to automatically build and start the app in release mode on your device or emulator.
flutter run --release
The easiest way to install an apk on your device manually is
adb install your_apk_file.apk
Just created the basic cordova app (the Hello World app it generates), and
while
cordova emulate android
works fine on the emulator,
cordova run android
also fires up the emulator. My Samsung S5 is connected to the PC and USB debugging mode is enabled (after taping the build in settings 7 times, etc. http://www.valuewalk.com/2014/04/samsung-galaxy-s5-enable-usb-debugging-mode/ )
How to deploy it to my device directly?
Thanks
adb install path/to/local/apk
Or try with -s to install it on your phone's sd card. Apk path can be found in the build process's log, at the console.
Close the emulators first.
I have created a test PhoneGap Android App through CLI - I can able to run it to emulator but I can't able to run it to a device which is connected to through USB.
USB debugging is also enabled.
> adb devices
doesn't list the device but which lists the emulator.
Am I missing anything?
USB driver for the device was missing. For some of the Google devices drivers are available in sdk\extras\google\usb_driver. For other brands like HTC, Samsung and others we need to get it from them and install the same. I have downloaded driver for HTC One X from their website and installed it.
Sources:
Using hardware devices
Install USB Drivers
After installation use the below command to run the PhoneGap app
cordova run android \\if project created with cordova command
phonegap run android \\if project created with phonegap command
I have Android 2.2 for x86 which I installed in VMWare Workstation environment. How can I install custom build application?
Can I connect Eclipse debug tools to Android run on VMWare Workstaion?
find the IP address of the android VM, by going to the console (Alt-F1) and then typing: netcfg, you can go back to the UI by pressing (Alt-F7).
Then type:
adb connect <VM's IP>:5555
then:
adb install path-to-the-apk
Try installing Astro file manager. On mobile devices it lets you find the APK on the SD card and then install it. I assume the same can be done by your emulator.
How can I connect to a mobile device and install android application in that device?
You need to have android sdk installed on your machine. And then you can use the command adb -d install .apk
You Just get your device connected via USB to your computer. Do ensure that what so ever Handset You are Using its USB drivers are installed over your computer.
After Your Device connected, right click on the project folder in the package explorer and select Run As -> Run Configuration ->
Select Target Mannual radio button.
Then when you will run the program it will show you your device to select to deploy your app.