随笔分类 - android
writer anywhere
摘要:BroadcastReceiver的优先级是可以设置的:如下: 除了可以设置优先级外,还...
阅读全文
摘要:1.创建一个broadercasterpackage com.example.yabushan.broadercastreceiver;import android.content.BroadcastReceiver;import android.content.Context;import and...
阅读全文
摘要:在上两个笔记上加入了跨应用之间的绑定通信。步骤:1.创建一个Folder : NEW->Folder->aidl Folder2.在该aidl 中创建一个package,包名和要启动的那个服务app中的androidmanifest.xml中的package一致3.复制服务app中创建的aidl类到...
阅读全文
摘要:绑定service需要在上一讲中,新创建一个AIDL。// AppServiceRemoteBinder.aidlpackage com.example.yabushan.aidsservice;// Declare any non-default types here with import st...
阅读全文
摘要:package com.example.yabushan.aidsservice;import android.app.Service;import android.content.Intent;import android.os.IBinder;//创建一个服务public class AppSe...
阅读全文
摘要:package com.example.yabushan.servicetest;import android.content.ComponentName;import android.content.Context;import android.content.Intent;import andr...
阅读全文
摘要:package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;public...
阅读全文
摘要:package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;public...
阅读全文
摘要:package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;//服务类p...
阅读全文

浙公网安备 33010602011771号