Cant use my Device as a Emulator in android - android

I have device Micromax A63 which have android 4.2 jelly bean.
But my problem is when I run android application via eclipse I cant found my device is attached with USB cable in eclipse.
When I connect with USB cable I have 4 option on my device.
USB Storage
Media Device
Camera
Charge Only
how to use my device as a emulator please help me.
Please help me.

Open settings
About phone
Tab "Build Number" 7 times
Go back to settings and enable developer option
Now your phone is a developer phone ;)

Go to developer option > (Select) USB debugging option.

On your device go to settings > developer options > select USB debugging > check it ..
Come to eclipse select run configuration under the run menu , select your device as a target device.

Firstly get the USB drivers from the offical website, But it seems to me that Micromax have not posted an offical USB driver support(Poor customer service) , try re installing the MOBORO usb tool , which must do it http://www.idroidspace.com/download-micromax-usb-drivers/
After that follow plain instructions Of setting the debugging option "On" on your phone that is found at (as given on offical google android developer webiste )
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

Related

How can I run my physical device as an emulator in Android studio?

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....

Google Pixel not found in Android Studio

Having trouble with Android Studio connecting to my Pixel phone. I'm sort of out of ideas and am looking for suggestions. I feel like I'm missing an obvious step.
Things I've done:
Made sure developer options is on with USB debugging on.
Have tried switching from MTP to PTP.
My computer recognizes the Pixel just fine under windows 8.
Made sure android studio is up to date including "Google USB Driver" installed under SDK tools.
My previous phone (Droid mini) connects just fine.
Tried different USB ports for the cable to my phone.
Encountered this problem today as I tested on other people's phones. I found 4 possibilities why a device may not be recognized:
Case #1: The USB cable supports charging but not data transfer.
Case #2: Developer options haven't been enabled on target phone (see: https://www.verizonwireless.com/support/knowledge-base-215055/)
Case#3: Developer options enabled, but USB debugging hasn't been enabled. Go to Settings > System > Developer Options > USB Debugging
Case #4: Some (but not all) phones require MTP transfer mode to be enabled. It can be enabled by sliding a finger from the top of the screen and tapping "Android system - USB charging this device" > Tap for more options > Transfer files.
Hope this helps someone ^_^
EDIT:
It's come to my attention that there's another possibility. I don't know what causes this, but if you get really stuck, sometimes you need to go into Settings > Developer Options > Debugging > Revoke USB debugging authorisations. This will reset your device USB pairing fingerprint which will often bring the phone back as a device target in Android Studio.
In Pixel devices USB debugging is enable when:
Step 1. Enable Developer Options to double tap on Build Number, you can get it by search with build in setting.
Step 2. Enable USB debugging Option, to enable this just to search usb debugging in settings.
Step 3. Pixel devices require USB tethering mode to be enabled, It can be enabled by sliding a finger from the top of the screen and tapping "Android system - USB use for " > Tap on USB tethering.
After completion of all these steps you will be able to use you pixel device as enabled for debugging in SDK.
Android Studio / SDK Manager will provide the driver but Windows might not automatically install it for your device. Try checking the device manager, unplugging and reconnecting the device or let the device manager search for new hardware.
The driver (when installed via SDK Manager) will be found by windows when provided with the SDK root directory, usually AppData/Local/Android/sdk
I have had the same trouble with my Google Pixel 2 (Android 9); I couldn't connect it to ADB in Android Studio 3.3. In my special case, AS runs on Kubuntu 18.04 in a VMware Workstation on a Windows host.
I have to do following steps every time I want to connect the phone (the phone is already in developer mode):
Plug phone via USB into the computer (and connect it to the VMware guest, if you use it)
Phone: Swipe down the notification bar, there should be a message 'Charging the device via UDB'
Tab on it and change the 'Use USB for' from 'No data transfer' to 'File trasfer'
You can activate 'USB debugging' on your phone's developer screen before or after this procedure, both works for me.
That happened to me with a generic Type C to USB Cable (White Cable in the Picture Attached). Then I bought another Cable (The Black one in the Picture Attached) and it worked perfectly. It was the Cable. Make sure to have one that says "Data & Power".
Hope it helps!
The solution to device not found when running adb devices from windows 7 standard terminal for my Pixel 4a 5g was to simply update my google USB drivers. https://developer.android.com/studio/run/win-usb
If dev options aren't available, double click the build number until a notification appears stating dev options have been enabled.

Android Studio - No USB devices detected

I tried to play Android Studio 2.0 with my mobile without success, what I did are:
In my mobile, Apps/gear icon/Settings/SYSTEM/{} Developer options/ Android debugging/, enable the Android Debug Bridge(adb) interface (set tick).
After plug in my mobile to my PC with a USB cable, I found A0001 in my Computer folder. Within A0001, I can see the files in my mobile.
In my PC, run Android Studio/bin/studio.exe, "Select Deployment Target" window shows with message "No USB devices or running emulators detected"
I have tried two different USB drivers but got no lucky.
Perhaps I should tell Android Studio where is my USB driver? But, how?
Can you help?
I had the same problem too and I managed to resolve it this way.
First, enable debugger mode in your android device.
Go to Device Manager from Start Menu and try to find ADB Interface with an error symbol on it. This generally happens because windows sometimes fail to load all the mobile device drives.
Next, Go to http://adbdriver.com/downloads/ and download the driver installer, unzip and run it.
Now go to Android Studio and you should find that everything is working fine.
Chill....
same here... but I hope you can avoid this problem the same way I Did.
There is an "universal ADB Driver for all Android Devices".
Yep... sounds like magic.
Just follow this link.
https://devs-lab.com/usb-adb-drivers-for-all-android-devices.html
Fun fact there is no "Step 5" in that article so I'll give you.
you have to enable "USB Depuration" from "Developer Options" connect your cellphone to computer as a "MTP storage" , after windows detected your cellphone as a "Portable Device" Execute ADBDriverInstaller.exe (that downloaded from devs-lab)
check the device list and your cellphone will say "Driver incorrectly", select your cellphone and press install.
Step 6: Once the process is completed, you’ll see something like the image that appears there (in the link).
I hope that somebody else work this
Go to Run > Edit Configurations...
Under Deployment Target Options select Show Device Chooser
Dialog from the drop-down-list
See picture for reference
After struggling with this problem for a while, I found that there are certain cables that can only charge your phone, and even though they seem to be working, they do not allow your phone to be used as a "Media Device" and therefore Android Studio does not detect it.
Go to
Tools | Android | Enable ADB Integration
Make sure it's enabled. When I upgraded to 2.X it was for some reason disabled for me and it took me hours to find it.
I just cannot beleive why it is so difficult! let me try again and please check my steps again:
I installed Android Studio 2.0, then run Computer/OS(C:)/....../Android Studio/bin/studio.exe.
The Android Studio window appeared in my working area Computer/OS2(J:)/Users/MyAccount/Desktop/.
I connected my mobile with my computer, Cpmputer/A0001/ appeared, from it, I can see the files in my mobile.
I clicked the run icon in the Android Studio window, a "Select Deployment Target" window apeared with message "No USB devices or running emulators detected".
(I got two USB ports and tried both but got the same result.)
Finally found the solution : )
1. Install device’s required driver. (for me it was motorola device
manager)
2. Download Google Usb Driver from SDK Manager
3. Open your phone's setting->developer options and turn on USB debugging.
4. connect your device to computer
5. Go to Device Manager from Start Menu and try to find if there is ADB Interface with an error symbol on it.
5.1. If yes, then right click on the ADB interface->Update driver
software->Browse my computer for driver software-> Let me pick from
a list of device drivers on my computer->Select Motorola ADB interface
5.2. Now one confirmation will pop up in your mobile, accept it
5.3. Now you should see no error mark beside the ADB interface in your
device manager
There are 3 steps to set up your phone for debugging:
1) Change your phone to developer's mode by going to Settings, About Phone, Software Info, Android Version - tap at least 7 times on the Build Number text. You will get a message saying you are now a Developer.
2) Enable USB Debugging in Settings - Developer Options. Make sure you are not connected to your USB port to see the USB Debugging option enabled, otherwise it will be disabled.
After you plug in your USB, swipe at the top of your screen, you will see USB Debugging on.
3) Make sure USB connection is set to Photo Transfer (or MTP - Transfer photos and videos). After you plug in your USB, swipe at the top of your screen, and you will see Tap to change USB options on the menu. Tap it, and select Photo Transfer option.
Perhaps your mobile manufacturer does not provide the proper driver.
Go to Device MAnager and look for: Android Composite ADB Interface. If it's there, the driver is properly installed. If not... You and I are on the same "wagon"...
I tell you: Acer? Never again.
USB debugging somehow got turned off under developer options on my Samsung. Turned it back on and it worked, but only by clicking on "debug app" instead of on "run app".
With me, when connecting the mobile to the pc, three options appeared on my mobile.
Charge this phone
Transfer Files
Transfer Images
I thought I should select "Transfer Files", but it dd not work
But it only when works I choose "Charge this phone"
Few ways to resolve this problem.
Case 1: Install PdaNet+ in your system. (worked for me).
Case 2: Enable the USB debugging option in your mobile. Setting > developer > Check "USB Debugging".
Case 3: Change from MTP to PTP.(sometimes vise versa works).
Question is Your development sdk no mobile version android sdk Platform.
For example, my android phone system is 6.0, i need download sdk Platform 6.0.
First, try to revoke the usb sessions in the developer options, then try downloading an oem usb driver
If then doesn’t help you can try opening the device manager on windows, right click on your phone, select uninstall. This worked for me if I had the same issue.
I couldn't find my android phone or any USB device I connect to my windows laptop on the hidden icons. Well, my mouse and phone could charge but I can't seem to see my phone in the File Explorer option.
I prefer running Apps using my phone rather than emulator in Android Studio and yet I couldn't see my phone when I connect using the USB.
This helped me solve all my problems after several hours of searching for solution.
Download Universal ADB Drivers - One size fits all Windows Drivers for Android Debug Bridge
Please use this link: https://adb.clockworkmod.com/
I hope this works for you like magic!
I can see all the devices I connect using the USB cable and my mouse receiver.

Connect Phone To Android Eclipse

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.

Why my Galaxy Nexus is not detected by Eclipse in my android project?

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 )

Categories

Resources