手機不root也能連接,前提是必須在同一個wifi下。
第一步:打開cmd輸入框
第二步:將目錄切換到,D:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools
第三步:用數據線連接手機,輸入以下代碼:
adb kill-server
adb start-server
adb tcpip 5555
adb connect 手機ip:5555
手機不root也能連接,前提是必須在同一個wifi下。
第一步:打開cmd輸入框
第二步:將目錄切換到,D:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools
第三步:用數據線連接手機,輸入以下代碼:
adb kill-server
adb start-server
adb tcpip 5555
adb connect 手機ip:5555
效果圖: 1、RadioGroup的佈局文件 <RadioGroup android:id="@+id/rg" android:layout_width="wrap_content"