Installed android studio, but unable to run applications, as we need to create and select an emulator. I did it. However, I got an error message that shows-
Intel HAXM is required to run this AVD. Your CPU does not support
VT-x.
Please tell me, how to use my android phone instead of emulator for testing my android applications.
For using your phone:
You have to enable developer options from your android phone by
tapping your build number 7 times(I guess). Build number can be
found in Settings -> About Phone It will prompt you, when you start
tapping, about how many taps are left in enabling developer tools.
After enabling developer tools. You can see Developer options in your settings. Head towards Developer options and enable USB
debugging option.
Then install your mobile driver on your laptop or PC. You can find the same from your phone's manufacturer site or you can just
google the driver which your computer is asking for.
Now you are done. When you run your application you can see your phone in the connected device list, click run and application
will start running on your phone.
As far as HAXM is concerned. It increases the speed of your emulator so it is sometimes necessary to be installed on your computer so as to get speedy results.
Related
I am new to android development and am trying to run a test app on my android phone. But it will not detect my device when I click "run". I have tried to go through the OEM USB driver installation but it always says "Windows has determined that the best driver for this device is already installed. There may be better drivers on Windows Update or on the device manufacturer's website." When I unclick "Include subfolders" it says "The location you specified does not contain any driver package (.INF) files." I have tried other methods through device manager of installing OEM USB driver software, both selecting the directory C:\Users\My name\AppData\Local\Android\Sdk\extras\google\usb_driver and the one where I installed the samsung usb driver. I have been attempting to follow this link: https://developer.android.com/studio/run/oem-usb which is where android studio sent me.
Lets try the most obvious one. Have you enabled usb debugging on your phone yet? When I was starting android this has happened to me. If not enable it through your phone's Settings> Developer Options> Usb Debugging.
If the Developer options is not yet shown, tap the Build Number seven times to show it.
Build number is mostly found on About> Software Information.
You need to enable USB debugging in your device too, refer this link for process https://developer.android.com/studio/debug/dev-options
I am developing Xamarin forms app. I am not able to deploy app in nexus 6p( phone is not listed in device list ). Tried below steps, still phone is not detected.
I have installed Google USB Driver using Android SDK manager.
I have downloaded usb driver for nexus 6p and done 'Update driver software'
option in device manager under 'Portable devices' section. Device
gets displayed as 'Nexus 6p' within Portable devices section in
device manager and also seen as local drive( next to C: drive ).
Selected droid project as startup project.
But phone is not listed in visual studio device list. Any help?
Make sure the 'USB DEBUGGING' option in DEVELOPER OPTIONS remains checked on your connected Android Device.
I've lost lots of time because this item would uncheck itself for some reason between reboots/restarts and Enabling/Disabling the DEVELOPER OPTIONS.
If anyone else is still struggling with this in 2017, and your USB debugging is definitely on and it's still not appearing - I managed to fix this by turning developer options OFF then ON again from the device's settings. Also ensure that the USB option is set to:
Charging - Just charge this phone
I couldn't get any other method other than this to work. The device was then immediately detected by Visual Studio 2017 for me.
You ABD interface is not installed on your system, so first install the ABD driver from your local machine using (C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver).
And check your device is in developer mode.
If all the setting will be good then your visual studio automatically detect your device and you can start to debug your app on your device.
If you have installed VS2017 in parallel to VS2015, you also may have a look here Android devices not showed anymore in VS2015 after installing VS2017
my android phone is not detecting in pc even though I installed all the necessary drivers and all are up to date, can anyone tell me steps to install device in windows 7. my android phone is HTC one x.(I am running my project in eclipse indigo)
Start SDK manager
Go To Extra
See whether Have you installed Google USB driver if not install this.
Restart Eclipse.
Again Connect Your device with the following steps.
from your device check that whether have you Started USB debugging mode on from
Developer Options
Checked USB debugging with USB. Device should be connected as MTP.
If Developer Option is not available on your device you can enable it by following steps
Go to Settings
About Phone
Tap Build number continue 7 to 8 times (Don't remember exact figure)
You will see the Toast "You are now developer"
Developer Options will be enable now.
Did you enable developer option on your device?
this link might help http://www.developer.com/ws/android/connecting-your-android-device-to-eclipse.html
If the aforementioned answers don't work, there is a workaround with connecting some Android phones where you should connect it 'as a camera' in order for the PC to recognize the device. (It won't detect them otherwise)
Download mobogenie3 setup and connect your device ,mobogenie3 will automatically download your device driver and install it .
please help me how to debug my android application in moto g dvice in windows platform.In my app am getting problem in running service in background.
Go to the settings of your device and check for Development Tools or Developer Options.If its not available then go to About Device there tap 7 times on Build Number you will see Developer Options in your Settings Menu.Click on it and enable Debugging option.
In your Eclipse,right click on the your project,select Run as>>Run Configurations>>Target>>select Always prompt Device.
Now Whenever you will run your application it will show options,select your device.
Hope it helps you .All the best :)
In addition to the above solution you need to do this to:
The Android development guide (http://developer.android.com/tools/device.html) says that USB drivers are required for debugging on a device connected by USB.
You can install the USB driver by going to https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/action/auth
After installing the driver you can see the device in the Devices section of your IDE.
We can debug android application by following below steps
Enable USB debugging in developer options(if you are not able to see developer option then go to settings -> About Phone and press more than 5 times on build number then developer option will be enabled)
Install ADT plugin in eclipse
Connect your phone via USB cable
In eclipse change to DDMS perpective mode and there you can see Logcat panel and where we can live phone logging
I am trying to test an Android application through the Eclipse plugin on a real device. It is a Samsung Infuse 4G. I believe I have followed all steps on the Android page for testing on devices.
First of all, I cannot figure out what the Android OS version is because it does not show up in the settings. I can see that the firmware version is 2.2.1, so I assume I am running that version of Android OS as well.
Next, when I connect the device to my computer (running Vista, 64 bit), I get prompted with three options: Kies (firmware update), Media player, and Mass storage. When I look on the Internet, I see that I am supposed to select "Charge only", but this does not appear in the options with which I am prompted. I have already set USB Debugging to true through Settings > Applications > Development.
Third, I have installed the correct driver from the Samsung site based on my model number (SGH-I997), yet when I do adb devices from my platform-tools directory (I have tried adb kill-server and adb start-server), I still do not get my device listed.
I am not very advanced in terms of working with Android and have been banging my head against the wall on how to solve this problem, so any and all help guiding me through this would be appreciated.
Thanks!
Try installing this PC Suite ...Samsung Kies http://www.samsung.com/in/support/usefulsoftware/KIES/JSP this would help you to get the exact driver for the device and don't forget to check USB Debugging option in settings.
You also need to mark "Allow Mock Locations "in Development Options in Applications settings of your phone.
Also try enabling ,use as mass storage after connecting your device.
You can check if your device is detected in device tab of DDMS in Eclipse.
Even trying all such things ,it does not work try connecting your device 2 or 3 times ,restarting eclipse and enabling USB Debugging and mock locations again