共 94 篇文章 |
|
Android系统服务。AMS与WMS.此外,AMS和WMS都属于Android中的系统服务,系统服务有很多,它们在Android体系架构中都属于同一层次,所以最好在深入了解它们各自的运行机理前,对系统的宏观架构能够有所掌握,也就是在自己的脑海中能够搭建一个简单的模型和框架,搞清楚它们在系统中所扮演的角色。AMS与WMS:客户端向WMS添加一个窗口的过程,其实... 阅91 转0 评0 公众公开 19-11-25 14:36 |
4.5.1 Intent的基本使用 | 菜鸟教程本节引言:1.显式Intent与隐式Intent的区别。Intent it = new Intent();<activity android:name=".SecondActivity" android:label="第二个Activity"> <intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name=&quo... 阅481 转2 评0 公众公开 19-02-18 16:15 |
Android Bundle详解 1 Bundle介绍。Bundle bundle = new Bundle();该方法将类的数据写入外部提供的Parcel中.即打包需要传递的数据到Parcel容器保存,以便从parcel容器获取数据,该方法声明如下:writeToParcel(Parcel dest, int flags) 具体参数含义见doc文档(3.)静态的Parcelable.Creator接口,本接口有两个方法:createFromParcel(Parcelin) ... 阅37 转0 评0 公众公开 19-02-18 15:18 |
if (mFreeSpace) { const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event));struct input_event* const mBufferEnd;ssize_t InputEventCircularReader::readEvent(input_event const** events){ *events = mCurr;Sensor服务端每次读取数据之后,当然,一次读取一组sensor数据,这一组sensor数据可能有几个sensor值,也可能一个... 阅606 转2 评0 公众公开 19-02-14 18:24 |
获取Sensor列表:调用JNI函数sensors_module_get_next_sensor()获取Sensor,并存在sHandleToSensor列表中构造SensorThread类:构造线程的类函数,并没有启动线程,当有应用注册的时候才会启动线程启动SensorThread线程读取消息队列中数据View Code.这里主要做了三个工作:调用HAL层的hw_get_modele()方法,加载Sensor模块so文件调用sensor.h的s... 阅207 转0 评0 公众公开 19-02-14 18:23 |
隐式Intent与显示Intent的区别。Intent intent = new Intent();<intent-filter> <action android:name="android.intent.action.VIEW"></action> <category android:name="android.intent.category.DEFAULT"></category> <category android:name="android.intent.category.BROWSABL... 阅160 转0 评0 公众公开 19-02-14 09:23 |
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> <fragment android:id="@+id/fragment_left" android:name="com.blog.demo.... 阅19 转0 评0 公众公开 19-02-13 16:55 |
Android 基于Message的进程间通信 Messenger完全解析。<service android:name=".MessengerService" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="com.zhy.aidl.calc"></action> <category android:name="android.intent.... 阅54 转0 评0 公众公开 19-02-13 14:07 |
Android AIDL 教程 (一)在 AndroidManifet 配置 Service,将我们的 Service 暴露出去。<service android:name=".easy.EasyService" android:enabled="true" android:exported="true" android:process=":remote"> <intent-filter> <action android:name="xj.musicserver.easy.IEa... 阅123 转0 评0 公众公开 19-02-12 16:37 |
阅16 转0 评0 公众公开 19-02-12 14:54 |