สวัสดีครับหลังจากวันก่อนผมได้พัฒนาแอพแอนดรอย์ทีวี และได้ทดสอบที่ Emulator ที่เครื่องหลังจากการทดสอบ ตัวเครื่องการออกแบบต่าง ๆ ถือว่าออกมาดีเลย แต่หลังจากทีเอาไปใช้งานจริงๆ กลับมีปัญหาครับใช้งานไม่ได้ ดีไซน์ที่ออกแบบมาเพี้ยนไปหมดเลย เลยต้องหาวิธี Run App Real device กันเลยได้เจอวิธีนี้ครับ
1. Install adb debug on your computer.
2. Box open developer mode (Settings >> About box >> Build number) Click “Build number” for 3 times
Option, go back, go to “Developer options” and open “usb debug”.
3. The computer and the box must be on the same local area network (the computer can share a hotspot) and get the box ip (Settings >> About box >> Status >> IP address).
4. Run cmd on the computer (enter the directory where the adb program is located), start the adb program: adb start-server, connect the box: adb connect 192.168.xx.xxx, and enter the shell: adb shell.
วิธีการลง ADB
brew install android-platform-tools
ดูว่ามีการเชื่อมต่อหรือยัง
adb devices
เท่านี้เราก็สามารถที่รันแอพของเราบนอุปกรณ์จริงได้แล้ว