Is there is any way to connect non nexus devices as emulator in android studio?
If you are window user, first install Lenovo Driver for Window,
If Developer Option is not enabled, Setting > About Phone > Press BuildNumber 7 times
Go to Developer Options and please enable USB Debugging.
If popup appear, please tap to allow device.
And then , you can run your Android Projects with your real device
You can simply plug in your phone with Developer Mode enabled. When you click on Debug, it automatically shows up your phone. It is as simple as that.
Turn on Developer mode by tapping 5 times on the build number.
Go to Developer options, turn on USB debugging.
Plugin the device
A popup will appear. Click on allow device.
You are all done !
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 have two Android device. Both of the set up for development, but only one of them appear in Android Studio when I want to run app. What is wrong? I have Mac.
go to "Settings >> development options >> USB debugging" and enable it
There are several things that could be wrong. Here are a few:
Debugging mode is not turned on on the second device.
The port might be faulty. Is the phone charging when connected? Are you able to access files and folder inside the phone via your laptop.
Try installing the support software for phone on the laptop.
Solution:
If you don't see Settings > Developer Mode, go to Settings>About Phone and tap the 'Build Number' options 7 times.
Return to previous screen and open 'Developer Mode'.
Allow USB Debugging in this screen.
P.S. Mention phone make and model too.
How can I connect my phone to Android Eclipse, That The Projects Executed In My Phone Instead Of Android Virtual Device
thanks.
1- Enable USB debugging On your Android device, select Settings > Developer options.
2- Connect the Android device to your development machine using a USB cable.
more: https://developer.chrome.com/devtools/docs/remote-debugging
Note: On Android 4.2 and later, the developer options are hidden by default. To enable the developer options, select Settings > About phone and tap Build number seven times.
first of all you have to go settings then turn on debugging option in your mobile then press run option in eclips then select your device then you will see your app will run in your mobile for more assistant go to here http://www.developer.com/ws/android/connecting-your-android-device-to-eclipse.html
The first thing to consider is whether you have installed the OEM USB drivers for any devices you wish to use, as specified here. Then you must enable USB debugging on your phone (details will differ slightly depending on phone manufacturer and Android version).
The bigger elephant in the tent is that support for Android development in Eclipse ended in December so you will want to move to Android Studio as soon as possible.
I have a hp slate 6 voicetab running android 4.4 and I would like to use it to test an android app that I am developing. The Android phone is not showing up on the list of devices next to the emulator.
Can someone please help me.
P.S I am using android studio and running windows 8.1
Make sure you have USB Debugging Mode and Allow Mock Locations turned-on on your android device. To do that go to settings on the device and scroll down to developer options, then enable usb debugging. Also enable Allow mock locations.
Note if Developer options is not visible, enable it by going to About Phone and tap on the build number repeatedly 5 times.
I have managed to get it working. I used a software called ADBDriver installer, and I disabled the windows certificate check, then enabled developer options on the phone and it was able to show. Thanks for all your help
I have Galaxy Nexus Android version : 4.2.1
I downloaded this project: Color Histograms from here:
http://www.stanford.edu/class/ee368/Android/index.html
When i connect my device to my pc i hear and see that it was connected and i can browse the files in my device no problems.
Connected as Media device (MTP)
But when i click on the eclipse menu Run > Run As > (none applicable)
So i did Run > Run > No compatible targets were found...I select NO then a new window pop up:
Android Device Chooser
Choose a running Android device but it's empty.
Why it's not detecting my device ?
go to Settings - Developer options and enable USB debugging.
if it's already checked, rebooting the device might help (i had this bug a few times)
You need to enable Developer Settings inside the settings
Enabling then on android 4.2 and higher is different.
I'm using a dutch device so bare in mind bad menu-translations.
Go to Settings -> About this phone.
Then tab multiple times on Build-version (about 7 or 8 times, if I remember correctly)
Then you unlock the Developer Settings.
Go inside them and tick the USB-Debugging option -> reconnect device.
Hope this helps
EDIT: restarting the ADB service might help also: use adb kill-server to stop the server and adb start-server to start it again
Since Android 4.2, developer options is hidden.
To enable the developer options, go to Settings > About > then find your Build Number ("JOP40C") and tap it 7 times.
This will enable developer options. Then go what sergio said
goto Settings > Developer Options > Enable USB Debugging
Refs:
My Brain
http://www.xda-developers.com/android/enable-developer-options-in-android-4-2-jelly-bean/
http://forum.xda-developers.com/showthread.php?t=1989777
Have you enabled USB Debugging ?
To enable Nexus USB Debugging Mode
Go to Settings.
Select Developer options.
Turn on it.
Select OK to allow development settings.
Then tick USB debugging ~ Debug mode when USB is connected.
Select OK to allow USB debugging.
That’s all.
If on version > 4.2 then do as Blundell says(in the answers below)
You might need to install drivers as well depending on the operating system
Hold your phone & once your mobile is connect. An alert is given to you, open it you will find a button that take your permission to access. press Connect USB Storage button To connect.
To assure the connection: Go to your Computer folder & you will be able to see your mobile as a removable disk.
Enable USB Debugging on you device
If it's a Samsung device, install SAMSUNG_USB_Driver_for_Mobile_Phones then restart your dev environment
Plug it in, try the debugger.
Watch our for an alert on your device. You need to give your PC permission.
I tried all of the above, nothing worked. Then I noticed, I had never seen that confirmation dialogue "Do you want to allow this computer access etc." that was supposed to come up on first connect.
So I decided to do Settings > Developer options > Revoke USB debugging authorizations. After restarting and reconnecting everything, I got the dialogue and now the phone is recognized.
(Done on Android 4.3 )