![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安卓9.0
weixin_39178354
这个作者很懒,什么都没留下…
展开
-
android 9.0 activity与service启动
方法一: Intent intent = new Intent(); intent.setAction(“xx.xx.xx”); intent.putExtra(“qwert”,1); //可以省略 intent.setComponent(new ComponentName(“包名”,“绝对路径”)); mContext.startActivity(intent); 方法二: PackageMan...原创 2018-12-19 16:14:25 · 3244 阅读 · 0 评论 -
安卓进程间AIDL通信
下面来介绍下安卓不同进程之间通信方式之一AIDL 1:客户端和服务器端都要有包名及内容相同的AIDL文件 例如: package a.b.c; interface IMyAidlInterface { boolean connectCarplayProfile (String device); } 2:服务器端代码 服务器端需要一个Service,来让客户端绑定。 客户端绑定成功后,返回AIDL ...原创 2019-01-24 17:16:41 · 198 阅读 · 0 评论 -
非主线程更新UI
解决办法 1:子线程发message给主线程,去更新UI private HandlerThread workerThread; private static WorkerHandler workerHandler = null; private static TimeoutHandler timeoutHandler = null; workerThre...原创 2018-12-25 19:43:50 · 218 阅读 · 0 评论