摘要: http://pan.baidu.com/s/1qW5ilbe 阅读全文
posted @ 2015-08-04 13:55 雅布珊 阅读(170) 评论(0) 推荐(0)
摘要: 转自: http://www.cnblogs.com/always-online/p/4923809.html 一、行转列 在有些应用场景中,如学生成绩。学生所有科目的成绩都保存到一张表里面,当我们需要以列表的形式显示出学生所对应的每一科目的成绩的时候,需要使用到行转列。 示例 行转列语句 因为这里 阅读全文
posted @ 2017-10-30 19:42 雅布珊 阅读(2312) 评论(0) 推荐(0)
摘要: 由于项目原因需要将员工的工作经历按一定规则进行修正(当前工作经历的开始时间必须等于上一条工作经历的结束时间+1)。需要将不符合该规则的所有工作经历信息找出。 采用了如下sql将数据进行分析: SELECT e.EMPLOYEE_ID, '前一工作经历结束日期:' || TO_CHAR(E.PRE_T 阅读全文
posted @ 2017-10-30 19:39 雅布珊 阅读(1429) 评论(0) 推荐(0)
摘要: BroadcastReceiver的优先级是可以设置的:如下: 除了可以设置优先级外,还... 阅读全文
posted @ 2015-11-24 22:14 雅布珊 阅读(802) 评论(0) 推荐(0)
摘要: 有时候不需要监听广播是否有消息,所以可以使用动态注册的方式。即不需要再androidmanifest.xml中注册。主要代码如下:package com.example.yabushan.broadercastreceiver;import android.content.BroadcastRece... 阅读全文
posted @ 2015-11-24 21:25 雅布珊 阅读(286) 评论(0) 推荐(0)
摘要: 1.创建一个broadercasterpackage com.example.yabushan.broadercastreceiver;import android.content.BroadcastReceiver;import android.content.Context;import and... 阅读全文
posted @ 2015-11-24 20:52 雅布珊 阅读(288) 评论(0) 推荐(0)
摘要: 在上两个笔记上加入了跨应用之间的绑定通信。步骤:1.创建一个Folder : NEW->Folder->aidl Folder2.在该aidl 中创建一个package,包名和要启动的那个服务app中的androidmanifest.xml中的package一致3.复制服务app中创建的aidl类到... 阅读全文
posted @ 2015-11-24 00:32 雅布珊 阅读(434) 评论(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 雅布珊 阅读(388) 评论(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 雅布珊 阅读(288) 评论(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 雅布珊 阅读(419) 评论(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 雅布珊 阅读(242) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示