Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过我的应用程序识别充电器。
我在我的应用程序中实现了 Android Accessory API,并安装在三星 Galaxy S2 中。
但我将 AccessoryList 设为空。
如何解决它。
充电器本身不是“配件”,而是电池的一种状态。这是关于如何获得有关电源连接状态的通知的一个很好的 QA 。
您的附件列表为空可能是由于其他问题。请详细说明您的问题并提供您的一些代码,当我们了解更多时,更容易提供帮助。