Dismiss Notice

REGISTRATION IS AFTER ADMIN ACTIVATION

DONATIONS WITH PAYPAL CLICK TO BUTTON

1 MONTH VIP - 5$; 3 MONTHS VIP - 10$; 6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$

DONATIONS WITH Bitcoin Address:3NRs3CK3fhXifrNYxHEZKpETDd9vNLMsMD

Dismiss Notice
The registration is approved by the Administrator. It takes about 1 day to approve your registration
Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Wireless Android Debugging with Delphi xE5

Discussion in 'Delphi Android And IOS' started by N0body, Mar 9, 2014.

  1. N0body
    Online

    N0bodyN0body is a Verified Member DelphiFan Administrator Staff Member DF Staff

    Requirements:

    A machine (Mac or PC) you can connect the Android device to that has ADB (Android Debug Bridge) installed. This is part of the Android SDK. As well as necessary ADB USB Drivers (required on Windows). This can be your development machine, or another machine.
    A non-segmented wireless network that both your development machine and Android device are connected. (Segmenting prevents two connected devices from connecting to each other).
    These commands work with ADB (Android Debug Bridge). It is easiest if you add it to your path. By default it is found in the following location, but you can install it anywhere on your system (Select the “Use An Existing IDE” option when downloading).

    C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\adt-bundle-windows-x86-20130522\sdk\platform-tools

    First you need to connect your Android device to any computer. With USB debugging turned on, verify you have access to the device via ADB with the following command:

    Command:

    adb devices
    Output:

    List of devices attached 
    8605fa72        device
    If the list is empty, then you need to enable USB debugging and make sure you have the USB ADB Bridge driver for your device installed.

    Once ADB is setup, you can get the IP address with the following command:

    adb shell netcfg|grep wlan0
    Which should give you output like:

    wlan0  UP     10.20.5.88/24  0x00001043 2a:32:11:42:aa:3c
    Then put the device in TCPIP mode with the command:

    adb kill-server
    adb tcpip 5555
    Then on your machine that is running Delphi XE5 go to the command window and type (with the IP address from above):

    adb connect 10.20.5.88
    Then you can verify it worked from that same command prompt

    Command:

    adb devices
    Output:

    List of devices attached
    10.20.5.88:5555   device
    And now you can connect to that device wirelessly from Delphi. Like I mentioned before, this is slower, so expect some delays on deploy and responding to breakpoints.

    There is some more information on Stack Overflow, including some different options if you have a rooted Android device.
     

Share This Page

Laws
Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.
Donate Help To Us and Be VIP
DONATIONS WITH PAYPAL CLICK TO BUTTON
6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$
Social Block