Scan for android USB devices

14 posts / 0 new
Last post
MatteusS
MatteusS's picture
Offline
Joined: 25 Aug 2011
Posts:
Scan for android USB devices

Hi,

I have problem with the "Scan for Android USB device".

My plan is to test your "HelloNativeUI" example on my Android 2.3 X10 phone.

So I start with plug it in the USB port and I can see on the phone display that it is now connected to the PC. Then I choose the "Scan for Android USB devices" option in the MoSync IDE, but it says "Scanning for devices" has encountered problem. No android devices connected".

(When I run in the cmd-window the "adb"-tool which is provided in the native android-sdk it actually works and find the device).

So what am I doing wrong when I try to scan for the USB phone from inside the IDE?

Regards

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Hi,

I have the same problem. I usually just copy them onto my web server and download from there, but I'll see if I can get a proper answer to this for you.

MatteusS
MatteusS's picture
Offline
Joined: 25 Aug 2011
Posts:

Thanks for your answer,

I'll do as you suggest. That's work fine for me at the moment.

Br
// Matteus
Helsingborg, Sweden

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

Matteus

Can you check if the "Device Debugging" is turned ON?

Cheers,
Abi Waqas

ultrabizz
ultrabizz's picture
Offline
Joined: 26 Oct 2011
Posts:

I posted the solution here http://www.mosync.com/content/failed-scan-android-device-got-solution

shakesear
shakesear's picture
Offline
Joined: 25 Sep 2011
Posts:

I think that function never works...

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

The function works (or used to work)but its now a bit outdated. We will provide with the newer adb in the upcoming release. Till then, try using "adb devices" using cmd.
cheers,
Abi Waqas

MatteusS
MatteusS's picture
Offline
Joined: 25 Aug 2011
Posts:

Thanks.
Entering line command to adb works okay for me. I'll use that utility until you have released updates on the integrated tool.

Br
// Matteus

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

My pleasure. An older version of adb is being packaged with MoSync at the moment and we have to update it at some point. I think the thread related to adb up-gradation is already in circle. I will check with it though.

Cheers,
Abi Waqas

David Freitas
jddcef's picture
Offline
Mobile Conjurer
Joined: 28 Jul 2011
Posts:
abi wrote:

My pleasure. An older version of adb is being packaged with MoSync at the moment and we have to update it at some point. I think the thread related to adb up-gradation is already in circle. I will check with it though.

Why not go one better and import the adb stuff from the user's installed SDK if he has one, you just have to find or ask the user for the location, then create a symbolic link to it.

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

Hello David,

You have a nice fix for this but if its implemented, all of sudden the user have to have Android SDK installed his machine. Its implementable though. I will talk to the guys about it and will update you shortly.

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:
jddcef wrote:
abi wrote:

My pleasure. An older version of adb is being packaged with MoSync at the moment and we have to update it at some point. I think the thread related to adb up-gradation is already in circle. I will check with it though.

Why not go one better and import the adb stuff from the user's installed SDK if he has one, you just have to find or ask the user for the location, then create a symbolic link to it.

Hello Everyone,

I have discussed it with Android people and I have a good news to share with all of you guys. Adb will be updated.

Cheers,
Abi Waqas

David Freitas
jddcef's picture
Offline
Mobile Conjurer
Joined: 28 Jul 2011
Posts:

Or add a button that says, import my ADB from my SDK.

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

Yeah, Thats right. I actually had this thing in my mind that if you ask a use to browse to the Android sdk location and take the adb from there would dramatically force a user to have Android SDK installed in his machine. But even with that thought, your post stuck in the back of my mind somewhere and today I realized that one has to install Android SDK in order to use the Android Emulator so yeah, that is doable actually. I couldn't realize it before. I will talk to the guys about it and that is not gonna happen in 2011 but next year. :)

so Happy New Year