testing app from PC on attached phone

113 views
Skip to first unread message

peter gottlieb

unread,
Nov 29, 2013, 1:45:27 AM11/29/13
to android-d...@googlegroups.com
The common practice is to test an app on an emulator (such as what one gets from the Eclipse ADT plug-in) and then on an attached phone.  I have 9 apps on Google Play that were developed in this manner.  Now I can no longer get the Eclipse environment to recognize the attached phone.  I have had this problem in the past it always worked after a few tries (perhaps after re-booting the PC, or re-instantiating Eclipse).  I have tried on 2 systems:  

Indigo Service Release running on Windows 7

Android developer tools Build: v22.3.0-887826 running on Windows 8.


The windows 7 has worked in the past, but doesn't work now.  The windows 8 setup hasn't been used for this purpose before.  I have made sure to set debug = "true" in the manifest, and that the phones (a new Sony Xperia, and an old Sony-Erickson Xperia) are set to accept apps from non-verified sources.  I cannot get either phone to show up as a connected Android device chooser.


Does anyone have any idea what could be wrong?  


 

TreKing

unread,
Nov 29, 2013, 4:05:26 AM11/29/13
to android-d...@googlegroups.com

On Fri, Nov 29, 2013 at 12:45 AM, peter gottlieb <gottl...@gmail.com> wrote:

The windows 7 has worked in the past, but doesn't work now.  The windows 8 setup hasn't been used for this purpose before.  I have made sure to set debug = "true" in the manifest, and that the phones (a new Sony Xperia, and an old Sony-Erickson Xperia) are set to accept apps from non-verified sources.  I cannot get either phone to show up as a connected Android device chooser.


Does anyone have any idea what could be wrong?  


First guess would be you haven't installed the proper drivers.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

peter gottlieb

unread,
Nov 29, 2013, 10:52:47 AM11/29/13
to android-d...@googlegroups.com
Bad guess.  I clearly stated that the windows 7 setup had already worked with the Sony Erickson, but now doesn't.  For all PC-phone interactions (browse files on the phone from the PC, update phone software from the PC, etc) the connections work perfectly fine.  Only the Eclipse connection from the PC has the problem.  My only thought is a virus, but I have run Norton, and everything seems fine.  It could be some new virus that only effects certain software.   As a last resort I will try to get Norton assistance.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-develop...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-develop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kristopher Micinski

unread,
Nov 29, 2013, 11:11:25 AM11/29/13
to Android Developers
Can you get any response from ADB?

Kris



You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-develop...@googlegroups.com.

peter gottlieb

unread,
Nov 29, 2013, 11:27:44 AM11/29/13
to android-d...@googlegroups.com
I'm not sure what you mean by a response from ADB.  I can debug from Eclipse on the virtual device, but Eclipse android plug in won't even recognize the hardware phone.

Kostya Vasilyev

unread,
Nov 29, 2013, 12:46:42 PM11/29/13
to android-d...@googlegroups.com
Not in any particular order:

- You need drivers.

Sony Ericsson makes their adb drivers available in the Windows Driver Download center (or whatever it's called), but not every manufacturer does this. For those, you'll need to either install their own (manufacturer specific, and potentially device specific) drivers, or get the generic Google's adb driver and hack its UPNP IDs before installing.

- The adb debugging setting should be enabled (checked) on your non-virtual devices (system settings -> developer options).

- Some manufacturers / devices seem to require an entry in adb_usb.ini, or you'll get "permission denied".

-  Android 4.2 and higher requires an on-device confirmation before it allows adb connections.

- I'd recommend trying to get "adb devices" to work first, before jumping into Eclipse.

-- K


On Friday, November 29, 2013 8:27:44 PM UTC+4, peter gottlieb wrote:
I'm not sure what you mean by a response from ADB.  I can debug from Eclipse on the virtual device, but Eclipse android plug in won't even recognize the hardware phone.
On Fri, Nov 29, 2013 at 8:11 AM, Kristopher Micinski <krismi...@gmail.com> wrote:
Can you get any response from ADB?

Kris

On Fri, Nov 29, 2013 at 10:52 AM, peter gottlieb <gottl...@gmail.com> wrote:
Bad guess.  I clearly stated that the windows 7 setup had already worked with the Sony Erickson, but now doesn't.  For all PC-phone interactions (browse files on the phone from the PC, update phone software from the PC, etc) the connections work perfectly fine.  Only the Eclipse connection from the PC has the problem.  My only thought is a virus, but I have run Norton, and everything seems fine.  It could be some new virus that only effects certain software.   As a last resort I will try to get Norton assistance.
On Fri, Nov 29, 2013 at 1:05 AM, TreKing <treki...@gmail.com> wrote:

On Fri, Nov 29, 2013 at 12:45 AM, peter gottlieb <gottl...@gmail.com> wrote:

The windows 7 has worked in the past, but doesn't work now.  The windows 8 setup hasn't been used for this purpose before.  I have made sure to set debug = "true" in the manifest, and that the phones (a new Sony Xperia, and an old Sony-Erickson Xperia) are set to accept apps from non-verified sources.  I cannot get either phone to show up as a connected Android device chooser.


Does anyone have any idea what could be wrong?  


First guess would be you haven't installed the proper drivers.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-developers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-developers+unsub...@googlegroups.com.

Kristopher Micinski

unread,
Nov 29, 2013, 12:47:24 PM11/29/13
to Android Developers
I mean, if you type in "adb devices" do you get any output to indicate that ADB can find your device?

Kris

peter gottlieb

unread,
Nov 29, 2013, 2:03:31 PM11/29/13
to android-d...@googlegroups.com
I have tried running "adb devices", but the only device listed is the emulator.  If I close the emulator, I get nothing listed.  I don't think there are any drivers from Sony that would be specific to Eclipse or adb.  The ordinary windows drivers for the Sony phone are obviously working or I wouldn't be able to see the phone from PC connect.

Kristopher Micinski

unread,
Nov 29, 2013, 2:32:18 PM11/29/13
to Android Developers
I wouldn't say that that's "obviously" true by any stretch of the imagination.

I remember having to mess around with the registry on Windows to get debugging to work, though it's been a while so perhaps I'm off base here.  Anyway, if adb can't recognize your device then that's your problem.  The eclipse debugging functionality is just a wrapper through adb anyway (since adb stands for "Android Debug Bridge").  You should get this to work first, though at this point it sounds like it's somewhat device specific.

Kris

Steve Gabrilowitz

unread,
Nov 29, 2013, 5:24:28 PM11/29/13
to android-d...@googlegroups.com

I had the same problem once, figured it was a driver thing but couldn't seem to find the right driver.  I had used this program http://www.wondershare.com/android-manager/ before and remembered that it loaded some sort of driver so I fired it up and after it did its thing and found the phone and voila adb "magically" started working!

peter gottlieb

unread,
Nov 30, 2013, 11:04:28 PM11/30/13
to android-d...@googlegroups.com
I finally got the adb to recognize my old Experia, after I made sure the USB debugging was turned on.  The new Experia doesn't seem to have that option available or any other Development options.  I will have to talk to Sony support about that.



For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/ESKcfB1nTiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-develop...@googlegroups.com.

Justin Anderson

unread,
Dec 2, 2013, 11:49:04 AM12/2/13
to Android Developers
What version of Android is the new Experia running?  On newer versions the developer options are hidden by default... You need to enable them by going to "Settings > About Phone/Tablet/Device" and then tapping on the "Build number" setting several times... You should get toast notifications telling you when you have enabled the developer features.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


To unsubscribe from this group and stop receiving emails from it, send an email to android-develop...@googlegroups.com.

peter gottlieb

unread,
Dec 2, 2013, 12:27:16 PM12/2/13
to android-d...@googlegroups.com
That took care of it.  Thanks very much.
Reply all
Reply to author
Forward
0 new messages