![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
枫华瑟
这个作者很懒,什么都没留下…
展开
-
Android Activity与Service单次通信传值
在Activity中绑定Service Intent intent = new Intent(this, FloatVideoWindowService.class); intent.putExtra("input1",1); mServiceBound = bindService(intent, mVideoServiceConnection, Context.BIND_AUTO_CREATE); 在Service中取值 @Nullable @O原创 2021-01-19 11:12:57 · 115 阅读 · 0 评论 -
android 模拟返回键
//模拟返回键 相关于ADB方式 有时会无效 try { Runtime runtime = Runtime.getRuntime(); runtime.exec(“input keyevent " + KeyEvent.KEYCODE_BACK); } catch (IOException e) { e.printStackTrace(); } // 作为第三方app ,调用系统设置无效时,参考调用startactivity 将第三方acitivity调上 if (getRunningActivityNa原创 2021-01-19 10:29:08 · 811 阅读 · 0 评论