【发布时间】:2020-01-05 21:13:06
【问题描述】:
我刚刚下载了一个 Android Things 映像并为 Raspberry PI 3 Model B 刷了一张 SD 卡,好的,它工作正常。我将 Rasperry 连接到我的网络并创建了一个带有 TextView“Hello World”的“Android Things Empty Activity”。
首先,Android Studio 没有连接到 PI。下载“平台工具”并在 Windows 命令 cmd“adb connect android.local”中运行后,我可以将应用程序下载到 PI。我正在使用 Raspberry Pi 触摸屏 https://www.raspberrypi.org/products/raspberry-pi-touch-display/。
第二件事,触摸行为不是很好,在我看来它不起作用。
第三件事,下载应用程序后。该应用程序无法启动,只有在单击“配置文件应用程序”按钮或在关闭/打开电源的情况下重新启动 PI 后:(
应用程序最终启动后的第四件事:我猜它是空的!?只有 DarkActionBar 与 strings.xml 中的文本可见。无论我在 main_activity.xml 中放置什么,看起来我都在错误的 xml 文件中。
感谢您的帮助。
【问题讨论】:
标签: android raspberry-pi android-things