Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Android not visible in Target tree


This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Feb 27, 2017 9:51 AM Last Post By: Nobert Sebstian
Justin Philbrow

Posts: 40
Registered: 6/14/10
Android not visible in Target tree  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2016 10:50 AM
Hi all,

I have just purchased and upgraded to Delphi Berlin Enterprise. I work on a Windows 10 (32).

I went through the standard setup and included the Android platform option. I can see that the standard Android SDK 24.3.3 32bit is listed in the SDK Manager in the Options. And all the paths and locations are correct (dont have any remark).

My problem is that my Samsung A5 (Android 6.0.1) does not appear in the Target tree.

I can see my phone in the Device Manager and I have access to he phone via the file explorer (when it is plugged in via USB).

I have tried following the instructions to update the USB from the Extra folder in the Android SDK, but windows says it has the latest version of the USB driver.

The help file says to run the SDK Manager from the Start-> Embarcadero RAD Studio 10 folder, but there is no short cut there, but I found it in the "C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository\AndroidSDK-2433_18.0.25048.9432" and ran it from there to add some SDK's there. But this does not help either.

I have tried uninstalling Delphi Berlin and reinstalling but this does not help. I have used 2 days on this and searching the web for clues, but no go...

What do I need to do to be able to "see" my Android dvice in the Target tree?
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Android not visible in Target tree  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2016 11:21 AM   in response to: Justin Philbrow in response to: Justin Philbrow
Justin Philobrow wrote:

What do I need to do to be able to "see" my Android dvice in the Target tree?

Probably this:

http://www.techoxygen.com/enable-developer-options-in-samsung-a5-2016/

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
steven chesser

Posts: 401
Registered: 4/13/09
Re: Android not visible in Target tree
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2016 11:33 AM   in response to: Justin Philbrow in response to: Justin Philbrow
Assume enabled developer mode on the device?

I've had issues with a few Android devices over the past year or two. Always ended up being driver related, I forgot to enable developer mode on the device, OR
for got to enable USB debugging in the developer mode.

I use the Android tools themselves to check if its Delphi hiccup or USB/Android talk issue. Pretty much always comes back to if Delphi can't see it, the Android tools don't either,
and I gotta do some doinking around to make it work. And once the Android tools can see it, Delphi tends to be able to then.
Justin Philbrow

Posts: 40
Registered: 6/14/10
Re: Android not visible in Target tree  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 30, 2016 3:54 AM   in response to: steven chesser in response to: steven chesser
steven chesser wrote:
Assume enabled developer mode on the device?

I've had issues with a few Android devices over the past year or two. Always ended up being driver related, I forgot to enable developer mode on the device, OR
for got to enable USB debugging in the developer mode.

I use the Android tools themselves to check if its Delphi hiccup or USB/Android talk issue. Pretty much always comes back to if Delphi can't see it, the Android tools don't either,
and I gotta do some doinking around to make it work. And once the Android tools can see it, Delphi tends to be able to then.

Thanks.
Yes I have enabled "Developer Options", but on rechecking I see that USB Debugging is greyed out (inactive) and I can't slide it to on. I am guessing that this is the reason.
On investigating it seems that there is an article: How to Fix: USB Debugging Option Greyed Out (http://www.syncios.com/android/fix-usb-debugging-grey-out.html) if your Samsung has "My Knox" installed. I did this, but it has not solved my problem. I am now looking at other security software on the phone to see if one of them can be blocking the USB Debug mode. It is a cmpany phone and is running Sophos security software.
I will up date this post if I find the culprit.
Justin Philbrow

Posts: 40
Registered: 6/14/10
Re: Android not visible in Target tree  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 2, 2017 5:53 AM   in response to: Justin Philbrow in response to: Justin Philbrow
Hi all,

Just to update the below. I have this issue due to company mobile policies that are kept via the SOPHOS app. I will close this here. But could be other users that have similar controlling apps that enforce company mobile policies. In this case the in had to go in to the SOPHOS enterprise system and allow USB debugging and send the updated policy to the mobile.

Justin Philobrow wrote:
steven chesser wrote:
Assume enabled developer mode on the device?

I've had issues with a few Android devices over the past year or two. Always ended up being driver related, I forgot to enable developer mode on the device, OR
for got to enable USB debugging in the developer mode.

I use the Android tools themselves to check if its Delphi hiccup or USB/Android talk issue. Pretty much always comes back to if Delphi can't see it, the Android tools don't either,
and I gotta do some doinking around to make it work. And once the Android tools can see it, Delphi tends to be able to then.

Thanks.
Yes I have enabled "Developer Options", but on rechecking I see that USB Debugging is greyed out (inactive) and I can't slide it to on. I am guessing that this is the reason.
On investigating it seems that there is an article: How to Fix: USB Debugging Option Greyed Out (http://www.syncios.com/android/fix-usb-debugging-grey-out.html) if your Samsung has "My Knox" installed. I did this, but it has not solved my problem. I am now looking at other security software on the phone to see if one of them can be blocking the USB Debug mode. It is a cmpany phone and is running Sophos security software.
I will up date this post if I find the culprit.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Android not visible in Target tree  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 2, 2017 10:50 AM   in response to: Justin Philbrow in response to: Justin Philbrow
Am 02.01.2017 um 14:53 schrieb Justin Philobrow:
Hi all,

Just to update the below. I have this issue due to company mobile policies that are kept via the SOPHOS app. I will close this here. But could be other users that have similar controlling apps that enforce company mobile policies. In this case the in had to go in to the SOPHOS enterprise system and allow USB debugging and send the updated policy to the mobile.

Justin Philobrow wrote:
steven chesser wrote:
Assume enabled developer mode on the device?

I've had issues with a few Android devices over the past year or two. Always ended up being driver related, I forgot to enable developer mode on the device, OR
for got to enable USB debugging in the developer mode.

I use the Android tools themselves to check if its Delphi hiccup or USB/Android talk issue. Pretty much always comes back to if Delphi can't see it, the Android tools don't either,
and I gotta do some doinking around to make it work. And once the Android tools can see it, Delphi tends to be able to then.

Thanks.
Yes I have enabled "Developer Options", but on rechecking I see that USB Debugging is greyed out (inactive) and I can't slide it to on. I am guessing that this is the reason.
On investigating it seems that there is an article: How to Fix: USB Debugging Option Greyed Out (http://www.syncios.com/android/fix-usb-debugging-grey-out.html) if your Samsung has "My Knox" installed. I did this, but it has not solved my problem. I am now looking at other security software on the phone to see if one of them can be blocking the USB Debug mode. It is a cmpany phone and is running Sophos security software.
I will up date this post if I find the culprit.

Hello,

thanks for this follow up so we may take such systems into account when
running into similiar problems in the future.

One remark to your answer: it's being considered standard here to answer
below the text one is answering to. This is not e-mail where usually
everybody reading a mail knows all of the history already.
Thanks.

Greetings

Markus
Nobert Sebstian

Posts: 1
Registered: 3/27/17
Re: Android not visible in Target tree  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 27, 2017 9:51 AM   in response to: steven chesser in response to: steven chesser
steven chesser wrote:
Assume enabled developer mode on the device?

I've had issues with a few Android devices over the past year or two. Always ended up being driver related, I forgot to enable developer mode on the device, OR
for got to enable USB debugging in the developer mode.

I use the Android tools themselves to check if its Delphi hiccup or USB/Android talk issue. Pretty much always comes back to if Delphi can't see it, the Android tools don't either,
and I gotta do some doinking around to make it work. And once the Android tools can see it, Delphi tends to be able to then.

Works perfectly, enabled my developer option in Samsung a7 happily.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Android not visible in Target tree
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2016 11:43 PM   in response to: Justin Philbrow in response to: Justin Philbrow
Hello,

as written by others:

1. enable developer mode on your device by tapping 10 times on the last
settings item of the phone settings

2. search for the Samsung development USB driver. Having access from
Explorer is not sufficient.

3. after installing the development driver and plugging your phone in
you should be able to see it on command line (cmd.exe) via
"adb devices " command. adb.exe is located somewhere in your Android
SDK installation.

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02