跳到主要內容

Android 開發使用 TCP/IP

首先你需要讓你的手機有一組IP

第一次你需要將你的手機用usb接上
在cmd畫面打入

adb tcpip 5555

之後可以不用再做這步(重開機後要)

如果顯示沒有adb 你可以下載

http://developer.android.com/sdk/index.html

後cmd到你的解壓縮目錄/sdk/platform-tools

adb放在此

接下來鍵入

adb connect  192.168.xx.xx

即可連線

adb logcat   會傳輸手機的Log到畫面上 (按Ctrl+C結束)

adb devices 會列出裝置


留言