How do I run an Android app on my device? - android

RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add android:debuggable="true" to my manifest
3. Tried adb devices in command prompt and it shows the device as connected
4. Enabled USB debugging via Developer Settings
Still, my phone is not detected in Eclipse
What is going wrong ?
I am using Windows 7 32 bit and trying to connect a Samsung Galaxy S3 (GT-I9300) with the latest firmware :)

I have same issue with my Galaxy S3 (GT-I9300). I solved this issue after "Factory Data Reset". Now when i connect my phone with USB ,Eclipse shows my device perfectly.
Hope its helpful to you...

My friend had similar problem, solution was restarting adb server. Try running:
adb kill-server
adb start-server
from command line.

You could try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. This worked for me in the past.

I think this is due to the driver problem. Just install the drivers properly and try reconnecting it.
this is a driver for S5830 similarly you should install drivers for your device

Download Samsung Kies mini And Than Try To Connect Your Device.

Install the software Moborobo
and then
Try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device.

Related

USB Debugging not working, tried everything

I know this is kind of obsolete, but I can't get it to work. I have Android 4.2.2 and Windows 8.1. When I plug it in USB debugging mode the command: adb devices there is an empty list. I tried:
installing "ADB, Fastboot and Drivers"
unlocking Developer Options in Android
adb kill-server / adb start-server
changing USB port
restarting Windows and Android
deleting "C:\Users\****\.android\" contents
Nothing works. Please help!
Thanks in advance,
Adi.
Probably you should install Google USB and Web Drivers in SDK Manager:
Also maybe you should try to install Samsung Android USB Driver.
See also http://www.itjungles.com/samsung-galaxy-s-ii-how-to-enable-usb-debugging.html and Android:use debugmode in galaxy s2 (maybe install Samsung Kies).

Why Android Studio won't install my app on my phone

That is the error I get. I don't know why. I am connected. Well at this point I don't know if it refers to another kind of "offline" stuff.
I didn't find any answers to this specific error
09/19 02:49:11: Launching 'app' on samsung SM-J710MN. Installation did
not succeed. The application could not be installed. Installation
failed due to: 'device offline'
There are two possible reasons for this behaviour. Either your Samsung device is faulty or this is an adb issue. To confirm, enter this command into your terminal while your Samsung device is connected:
adb devices
If the result returns the name of your Samsung device, then there's probably a problem with the Samsung device.
However, if your terminal does not recognize this command, it means you have to install Samsung adb driver on your computer. This way, your computer would easily recognize your Samsung device. For Windows, there are a ton of links out there where you can download Samsung adb driver; I have not verified any of them, so you might have to do the search by yourself. Nevertheless, I hope you understand the problem now.
I hope this helps.
Merry coding!
Can you run the following codes in the terminal and share the result?
adb devices
You can also try this method
adb kill-server then adb start-server
GO to avd manager now you are able to see installed avd. from that actions select wipe data, and run your project. this Worked for me.

"No Connected Devices", trying to connect my LG to my Ubuntu machine

I am trying to run an app that I have built on my phone. I have enabled USB-debugging mode on my LG G3, but my Linux Machine and Android Studio is saying that there are no connected devices.
How do I fix this? Have I forgotten something important?
I had the same connection problem.
Switching to "Send Images (PTP)" solved it for me.
I had similar problem with my Xperia S.
1) I installed android adb tools on Ubuntu. (Using: sudo apt-get install android-tools-adb android-tools-fastboot)
2) Selected MTP mode on my Xperia S. Disabled debugging. Disconnected the phone from system.
3) Enabled USB debugging, connected the phone again and tried the command "adb devices" from ubuntu terminal.
It then started the adb daemon and listed my device.
Once the device was listed there, I started the android studio again, and my phone was listed there.
Also, you might find this helpful : https://developer.android.com/tools/device.html
Hope it helps..
CD to your sdk platform-tools folder
Check if adb sees your device
./adb devices
If it displays 'List of devices attached' and a blank line below, then restart adb as follows:
./adb kill-server ./adb start-server
then re-run ./adb devices and see if it picks up the device, eg as follows:
List of devices attached xxxxxxxxxxx
There is a well-written and detailed step-by-step guide for connecting a phone with Android Studio when running Linux here:
http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
Changing in the USB Options on the phone to "Send Images (PTP)" worked to me as well (on a LG phone). Must be something with LG phones, because with other Android phones this wasn't needed.
After taking a few hours, I just solved a similar problem minutes ago with LG G3 on WINDOWS.
Maybe my experience can help you.
Firstly, do NOT enable USB debugging.
Secondly, install the OFFICIAL USB driver from LG (I have no idea whether this is available on Ubuntu). Please make sure the driver works normally by some LG software. BTW, I don't think LG is good at software.
Thirdly, enable USB debugging and go.

android studio "USB device not found"

I'd like to start by saying that I am using android studio(1.0.1) with an Android (v4.1.2) phone.
Android studio is not recognizing any device connected.
I have already set run configuration to usb device,
I think my problem is with Google usb driver,
how to check if it is working?
Thank you
If none of the above help, try doing adb kill-server and adb start-server, then do adb devices and see if device is detected.
Can you check if your Operational System recognize/mount the device? See if you can access the folders inside the device. If you won't you may install the compatible driver.
Hope it helps.
Which phone do you got?
ask yourself the following quistions first:
1. Did you install all the phone drivers?
2. Are you in developer mode with usb debugging on?

why is my device not shown when I want to deploy the application?

I want to deploy my android application on samsung, my device is not shown in Android device chooser even Samsung kies is installed.I tries all my possibilities but it doesn't work 4 me. Can anybody help me Your help would be appreciated !!
Check If you have enable USB Debugging and Allow Mock Locations ON in your Device
Make sure In settings -> developers options-> enable USB Debugging
And in terminal, go to platform-tools where you installed android, then give command
1. adb kill-server then
2. adb start-server then
3. adb devices: it should display your device.

Categories

Resources