PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Automatic Detection of characteristic of Android Phone
Automatic Detection of characteristic of Android Phone
Débuté par Nimesh, 26 nov. 2014 12:53 - 29 réponses
Posté le 26 novembre 2014 - 12:53
Hi All,

We are using Windev Mobile 17 IDE and this is regarding to our first application.
We are unable to detect our mobile device for testing as the windev 17 mobile is not detecting our mobile device under Project> Project Description>Describing the platform>Detect the characteristic automatically.

However we have tried to run the completed examples provided into the windev library.
There is a screenshot attached for your reference.
[attachment 1254 autodetect.jpg]
Posté le 27 novembre 2014 - 10:08
Hi All,

Kindly look into this matter,
Posté le 27 novembre 2014 - 10:11
Did you see this post about the same question?
<a class="ExternalLink" rel="nofollow" target="_blank" href="http://27130.foren.mysnip.de/read.php?27131,488165,488312#msg-488312">http://27130.foren.mysnip.de/read.php&hellip;</a>
Posté le 27 novembre 2014 - 10:26
Yes arie,

Debug mode is activated on device. but still showing same problem.
Posté le 28 novembre 2014 - 06:20
Hi All,

Any suggestions.
Posté le 28 novembre 2014 - 08:57
Hello Nimesh

This is an operating system issue so what operating system are you using and does it see the android device when you plug it in ?

Have you downloaded and installed the Android SDK ?

Regards
Al
Posté le 28 novembre 2014 - 09:44
sir;
i have download sdk in proper manner
Posté le 28 novembre 2014 - 09:52
Hi Al,

Thanks for your reply.

Currently we are using windows 7 64 bit operating system and mobile device is plugged in properly as we have tried different devices but all are encountering the same issue and as well as android sdk is concerned we have installed android sdk and set its path also and adb is also installed on development computer.
Posté le 28 novembre 2014 - 09:56
sir;
i have download sdk in proper manner and sir i have in working windows 7 operting system 64 bit i have install adb driver in computer
Posté le 28 novembre 2014 - 09:58
Hi Al,

The system is detecting the device
Posté le 28 novembre 2014 - 10:59
Hello Nimesh

Sometime my system doesn't see the device either, but this is in the generation stage in V19. The process you sent a screen shot of must have been amended in later versions because I can't see it in V19

You could try this as it works for me to get the phone to be discovered by WinMobile in V19
Do not plug the mobile into the USB port. Start your project and before you get to the stage where it is going to look for the device, open task manager and end the adb.exe process and then plug the phone into the USB port. This will force the adb.exe to restart and it may then discover the phone.

Regards
Al
Posté le 28 novembre 2014 - 11:14
Hi Al,

ADB is installed but process is not showing in task manager.
Posté le 28 novembre 2014 - 11:34
Hello Nimesh

I think the adb.exe should start automatically if the android sdk is installed correctly so perhaps yours is not. I am getting a little out of my depth here, because everything just worked for me and I did not have to do much trouble shooting so this suggestion may not have much science behind it.

I noticed from your screen shot that the android sdk was installed into your user files whereas mine is installed in the root of drive C: As the adb.exe is not working, you probably have nothing to loose ( except time) in uninstalling the Android sdk and re-installing it, perhaps in drive C:

Regards
Al
Posté le 28 novembre 2014 - 11:40
Hi Al,

Thanks for the reply Al but let me know that does it make any difference because user files already exists in drive C so ultimately sdk is installed in C drive.

Thanks
Posté le 28 novembre 2014 - 11:47
Nimish

I think Al has a point there.
Please read the help about installing Android SDK, specially this:

How do I install the Android SDK?
The following procedure must be used:1.Decompress the downloaded file in a folder at the root of drive "C:" to avoid a Windows virtualization. For example: "C:\Android\".


You find the help here: <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?9000042&name=Installing_the_Android_SDK">http://doc.windev.com/en-US/&hellip;</a>
Posté le 28 novembre 2014 - 11:53
Hi All,

Thanks for your prompt reply. I have uninstalled SDK and re installing it in C>Android as per instructions. As soon as the installation gets completed i will revert back to you.

Regards
Posté le 28 novembre 2014 - 14:06
Hi all,

My experience has been that some Android devices I've tried will not be detectable by any IDE not just WinDev. It has to do with the base drivers that get installed for that particular device when it is detected by the windows operating system.

I haven't had any problems with the big name brand devices, but off-brand and really low end devices haven't been very successful.

Good luck.
Cheers!
ken
Posté le 29 novembre 2014 - 10:49
We too had troubles with the Android SDK and not recognizing attached devices till we used the older version R.21. With that older version the problems were solved with WinDev Mobile version 18, also running on Win 7 64 bits.

Might be worth to try (if anything else fails).

Kind regards,
Rudolf van Roosmalen
Posté le 29 novembre 2014 - 11:06
Hi All,

Still facing the same problem. Please find the screen shots for reference.
[attachment 1257 error.jpg]
[attachment 1258 path.jpg]
Posté le 01 décembre 2014 - 06:15
Hi All,

Need update.
Posté le 02 décembre 2014 - 06:57
Hi All,

Any update.
Posté le 02 décembre 2014 - 07:19
Hello Nimesh

It would appear to be an operating system issue rather than a Windev problem.

Is the adb.exe program running ?

regards
Al
Posté le 02 décembre 2014 - 12:02
Hello Raul and Nimesh

The term operating system refers to the computer operating system, in your case MS Windows 7.
I suggest you find a local Android app developer who can assist you to get your computer and the Android SDK to function together as I don't think that WinMobile is the cause of your problem.

Regards
Al
Posté le 02 décembre 2014 - 12:06
Hi Al,

Please elaborate as we are using windows 7 with all updates and adb.exe is not running.

Thanks
Posté le 02 décembre 2014 - 12:35
I've been getting the same problems with WM 19

adb.exe is running and USB debugging is enabled.

I have tried with Galaxy Note 2, Nexus 7 2012 and Nexus 7 2013 versions.

None of them are recognised for 'Detect the characteristics automatically'.

Selecting a predefined phone/tablet is no problem so I used that.

When generating and installing an application, the Note 2 is recognised and everything
works fine.

When I tried the same with the 2 nexus's (nexi? <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)"> ) neither were recognised so I can't install and test.

So I don't think the problem is OS, adb.exe, USB debugging or obscure device manufacturers.

I don't know enough about Android to find out if there are error messages or something in the system/anti-virus etc is preventing the tablets being recognised.
Posté le 02 décembre 2014 - 12:53
Peter,
interesting.
If you run ADB DEVICES from the command-line, does it show your devices?
Posté le 02 décembre 2014 - 13:14
Thanks for the reply Arie, but I have found (my) answer: the default drivers that Windows installs when it detects a new device need updating.

1. Right click on MTP driver in Device Manager, 'Properties', 'hardware' tab and find 'Update Driver'.
2. Select 'Have Disk' and point to [android-sdk-dir]\extras\google
3. 'ADB' drivers installs.

4. Everything now works - the characteristics of the Nexus are recognised (as an Acer Iconia), the app generates, installs and runs.

Hope that helps someone else.
Posté le 02 décembre 2014 - 13:25
:spos::spos:
Posté le 02 décembre 2014 - 18:57
Hi Peter

actually the fact that your nexus is recognized as something else means that you do NOT have the correct drivers installed...

For each device, you need to make sure that the correct adb device is set up... For the nexus 7, it is directly available at google (as indicated in the windev mobile help page)... For a samsung device, you generally need to install the corresponding version of KIES, as it seems that they do not provide the adb driver alone.

Best regards
Posté le 02 décembre 2014 - 21:54
Hi Fabrice,

Thanks - I thought I'd followed all of PC Soft instructions but maybe not.

After more seeking out and installing the correct adb, the device now isn't recognised at all at startup, but is again identified correctly as a Nexus 7 for 'Copy onto Device' after generation.

So it doesn't recognise the device to set the platform, but it does to copy the generated file, and this works on the device.

Can anyone supply a link to the Nexus 7 driver download from Google?

Thanks

Pete