如何阻止充电编程Android设备? [英] How to stop an android device from being charged programmatically?

查看:127
本文介绍了如何阻止充电编程Android设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有停止充电,即使身体充电是在Android API?

解决方案
  

是否有停止充电,即使物理上充电呢?一个Android API

AFAIK没有。

理由:

android.intent.action.BATTERY_CHANGED 是只能由系统发送一个受保护的意图。因此,你不能复制或覆盖的功能。

Is there an Android API for stop charging even though physically the charging is on?

解决方案

Is there an Android API for stop charging even though physically the charging is on?

AFAIK no.

Justification:

android.intent.action.BATTERY_CHANGED is a protected intent that can only be sent by the system. Therefore you cannot duplicate or override the functionality.

这篇关于如何阻止充电编程Android设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆