I create a simple app with apache cordova, which I deploy on my local android emulator. Now, everything works fine, but I don't know how to deploy the app to my tablet. Any help?
This sometimes happens to me.
In addition to making sure you have developer mode and USB debugging enabled on your device, as Dawson Loudon suggested, I have to sometimes do the following:
I make sure my device is awake, and then unplug/replug in the USB connector, which prompts a "Allow USB debugging" dialog box on the device.
After I select OK, I can deploy to the device.
(If my device is asleep when I plug in the USB, I do not see this dialog and get the same behavior you described).
Related
I don't even know if there is a solution for this, but seeing software like Vysor and others, I was wondering, is it possible to run my USB connected android phone as an emulator, using Android Studio for example? How can I achieve this?
Edit: I don't want to debug or run apps from android studio in my physical phone, I know I can do that. What I want is to run my phone ( with it's data, other apps installed, etc) in mt laptop, as I would with an AVD.
yeah, you can run as a physical device on your android studio. the first thing which you have to do is go your phone settings and click on about device in that press 5-6 times on build number. after clicking on that you get a pop up that your developer mode has turned on.
in next you will see a developer options on your physical device setting.
go into developer options and click a mark on USB debugging.
after that connect your USB cable to your PC. and open the logcat options in the android studio.
you can see that your physical device is connected to your android studio.
yes ,
first go to mobile setting in your mobile device there you find software information
in software information press Build number for 5 times then it shows some toast message you are a developer
after that you will find developer options in settings go to it in that you will find usb debugging ( turn it on)
3)connect device with laptop using usb in and allow all the permissions that required for connection
4)go to android studio you will find your device name .If your device is not found go to run as multiple device there you find your device just click it
Thats all
Enable programmer mode on Your device and enable usb debugging there
If you mean the Physical device to use as a alternatives of Emulator then it is okay. You can use a Android Device to run the apps for debugging. Here is a detailed documentations how to connect your device with android Studio.
Check this link....
I am using Windows 10 with Android Studio's latest version.
I have configured my LG device to be in developer mode (clicked 7 times on the build number and got message that I am in developer mode).
When I try to debug my app on the LG device, I get popup that tells me that there is "No connected device".
What could be the reason for that?
I can see the device on My Computer as a media device.
In addition to being a developer, you must also enable debugging. Try going into Developer Options and turning on USB Debugging.
You just enabled Developer Options. You need to enable USB Debugging.
Go to Your phone's Settings then go to Developer options and enable USB debugging there.
Also sometimes if you connect a new device to your pc it will install some built-in drivers for the device. So make sure you allow that process to be finished.
Still if the problem persists try another port of your computer.
P.S. For first time connection your phone will ask you to allow debugging permission from pc.
I am just beginner for android. And I just create'Hello World' app for initiate in Android Studio. But I am not able to run this on my mobile device. When I connecting this to device, it's connected but showing an error message "No USB device or running emulators detected".
I did everything what I can but no luck.
Sometimes it helps to switch the USB connection to one of the other modes available. (See your notification bar on the left when your phone is connected to your PC.)
You will need to enable developer options on your phone -
On Lollipop 5.1
Go to About Phone
Click 7 times on Build Number. Now Developer options are enabled
Go back and Click Developer options
Enable USB debugging under Debugging.
Android Studio 2.1.1: "no usb devices or running emulators detected"
Have you tried to kill and restart adb server through terminal. Also there might be a case that usb driver are not installed.
You just have to follow few steps:
Install PDA Net on your PC.
http://pdanet.co/
Make sure your USB cable is in properly working condition.
Make sure USB debugging is "ON" on your Android Device.
Now when you will connect your phone with PC, it will automatically install some drivers. Let it install. When PC is done with driver installation, it will show a pop-up on your phone. You have to allow your PC your access your phone through that pop-up on your phone.
Try it, I hope it will work!
I'm trying to develop an app on Telerik AppBuilder and want to run it on physical devices. Even if I connect the devices with USB, AppBuilder doesn't recognise and the devices don't show up. I have enabled 'USB debugging', chosen 'MTP' as USB connection mode. I tired restarting everything, still the same issue. Is there something to do that I'm missing?
But when I connect my iPhone, it appears on devices list. However, I can't run and debug since I have no certificate from Apple.
So, what can be the problem for detecting the device? Thanks.
It could be a driver issue with your device (does it show up on your PC when you connect it?). You can check out other instructions in the docs here.
I'm relatively new to Android development, but I am having some issues with debugging on a new device I am working with.
Previously, I was using a Samsung Nexus S (Google development phone) running Android 4.0.4. When I plug in the USB, I get two notifications: USB connected, and USB debugging connected. When connected, Eclipse will prompt me to select the device I want to debug with, and I get tons of useful info in my LogCat window.
I recently started using a Samsung Galaxy S4, running Android 4.2.2. I have installed the USB driver from Samsung, but when I plug in the USB, I now only get a single notification: Connected as a media device. Now when I am running my app through Eclipse, it doesn't prompt me to select a device, and I get almost nothing in my LogCat window.
Can anyone instruct me on what I need to install or configure to get Eclipse to prompt me for the device, and give more detailed logging while debugging? USB debugging is enabled on the phone, in the Developer Options menu.
a) Have you turned on your Samsung S4 debugging mode
To activate the USB debugging:
From idle mode > tap on Menu > Settings > Applications > Development
Check "USB debugging"
b) Have you installed the necessary drivers for Debugging in Eclipse they are not the usual USB Drivers. Have a search on google you will find it
c) After installing reconnect you machine you will that it will mention on your device. Connected for debugging. And you LogCat will start populating
First, you need to set your phone into developer mode by clicking 7 times on Build version. Once this is done, you can check adb devices to see online devices connected to your machine. If you see your device, then you are good to go.
This link might help.
I had a similar issue with a tablet and a similar program. I found that if you forced the usb-sharing program to quit by using teh applications manager then eclipse would then find the phone. it is by no means a long term solution but at least you get to see the logcat.