//解决华为,魅族等等手机扩音播放失败的bug try { String keyCommand = "input keyevent " + KeyEvent.KEYCODE_VOLUME_UP; Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec(keyCommand); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
android 模拟点击手机按键(音量+)
猜你喜欢
转载自blog.csdn.net/chen352602412/article/details/50971271
今日推荐
周排行