随笔分类 -  android

writer anywhere
摘要:BroadcastReceiver的优先级是可以设置的:如下: 除了可以设置优先级外,还... 阅读全文
posted @ 2015-11-24 22:14 雅布珊 阅读(807) 评论(0) 推荐(0)
摘要:1.创建一个broadercasterpackage com.example.yabushan.broadercastreceiver;import android.content.BroadcastReceiver;import android.content.Context;import and... 阅读全文
posted @ 2015-11-24 20:52 雅布珊 阅读(292) 评论(0) 推荐(0)
摘要:在上两个笔记上加入了跨应用之间的绑定通信。步骤:1.创建一个Folder : NEW->Folder->aidl Folder2.在该aidl 中创建一个package,包名和要启动的那个服务app中的androidmanifest.xml中的package一致3.复制服务app中创建的aidl类到... 阅读全文
posted @ 2015-11-24 00:32 雅布珊 阅读(443) 评论(0) 推荐(0)
摘要:绑定service需要在上一讲中,新创建一个AIDL。// AppServiceRemoteBinder.aidlpackage com.example.yabushan.aidsservice;// Declare any non-default types here with import st... 阅读全文
posted @ 2015-11-23 23:50 雅布珊 阅读(394) 评论(0) 推荐(0)
摘要:package com.example.yabushan.aidsservice;import android.app.Service;import android.content.Intent;import android.os.IBinder;//创建一个服务public class AppSe... 阅读全文
posted @ 2015-11-23 23:35 雅布珊 阅读(296) 评论(0) 推荐(0)
摘要:package com.example.yabushan.servicetest;import android.content.ComponentName;import android.content.Context;import android.content.Intent;import andr... 阅读全文
posted @ 2015-11-22 13:30 雅布珊 阅读(425) 评论(0) 推荐(0)
摘要:package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;public... 阅读全文
posted @ 2015-11-21 22:49 雅布珊 阅读(245) 评论(0) 推荐(0)
摘要:package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;public... 阅读全文
posted @ 2015-11-21 13:34 雅布珊 阅读(271) 评论(0) 推荐(0)
摘要:package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;//服务类p... 阅读全文
posted @ 2015-11-21 13:16 雅布珊 阅读(212) 评论(0) 推荐(0)