码迷,mamicode.com
首页 > 2014年05月22日 > 全部分享
android:启动服务;广播(最高优先窃听信息)并转发给别人
3.1、Service服务 Service类似Activity,实际上就是一个没有界面的Activity,而且默认不会随着程序关闭而关闭。  开发人员自定义的服务类一般用来完成一些安全软件的一些监听功能,以及消息提示,流氓软件的功能。 系统服务则是通过类似getSystemService()的方法来取得系统的一些服务管理类(XxxxManager),来调用系统处理好的功能完成自己需要的操作,...
分类:移动开发   时间:2014-05-22 09:33:54    阅读次数:311
zoj 3210 A Stack or A Queue? (数据结构水题)
?? A Stack or A Queue? Time Limit: 1 Second      Memory Limit: 32768 KB Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:其他好文   时间:2014-05-22 12:24:38    阅读次数:236
【剑指offer】旋转数组中的最小值
题目总结: 1.若没有进行旋转,或者说旋转后的效果跟没有旋转是一样的,那么index1指示的值小于index2指示的值,返回index1的值。 2.若是一般性的旋转,那么最小的值旋转后肯定在中间,那么我们就可以从两边向中间夹逼。 3.夹逼的过程中,若 [ index1, middle ] 是有序的,说明这部分子区间没被破坏,旋转所移动的元素都在middle 的后面,那么最小值可定也在后面的部...
分类:其他好文   时间:2014-05-22 13:42:45    阅读次数:236
HDU 3910 Liang Guo Sha
HDU 3910 Liang Guo Sha 题目大意: If both of them choose “Sha”, then Alice gets A points, and Bob loses A points; if both of them choose “Shan”, then Alice gets B points, and Bob loses B points; otherwise, Bob gets C points, and Alice loses C points. 给定A B ...
分类:其他好文   时间:2014-05-22 06:22:40    阅读次数:281
Arduino 无源蜂鸣器警报声
之前做了个有源蜂鸣器的提示音,这次无源蜂鸣器到货了,先来个警报声测试一下,下一步开始无源蜂鸣器的音乐播放之路,期待吧,骚年!...
分类:其他好文   时间:2014-05-22 10:56:51    阅读次数:360
C和C++中泛型编程 - 适应不同类型参数的函数
首先一个简单的问题,如何实现交换两个整数的值? 想必每个有编程经验的人都能作答。 C语言用指针实现如下: void swap(int * a, int * b){ int tmp = *a; *a = *b; *b = tmp; } C++可以使用引用实现如下: void swap(int & a, int & b){ int tmp = a; a ...
分类:编程语言   时间:2014-05-22 13:45:35    阅读次数:286
UIActionSheet添加多个otherButtonTitles
关于UIActionSheet,我们经常用到的就是 UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"请选择" delegate:self cancelButtonTitle:@"取消"destructiveButtonTitle:@"确定" otherButtonTitles:@"1",@"2",@...
分类:其他好文   时间:2014-05-22 09:51:25    阅读次数:385
[LeetCode]Remove Nth Node From End of List
Remove Nth Node From End of List删除链表倒数的第N个元素...
分类:其他好文   时间:2014-05-22 11:15:52    阅读次数:170
hdu1176
题目链接: 点击打开链接 题目为:                                                                        免费馅饼 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉...
分类:其他好文   时间:2014-05-22 06:57:37    阅读次数:149
bzoj 3198: [Sdoi2013]spring 题解
【原题】 3198: [Sdoi2013]spring Time Limit: 40 Sec  Memory Limit: 256 MB Submit: 253  Solved: 95 Description Input Output Sample Input 3 3 1 2 3 4 5 6 1 2 3 0 0 0 ...
分类:编程语言   时间:2014-05-22 09:50:42    阅读次数:394
八皇后问题(回溯法&枚举法)
八皇后问题(回溯法&枚举法)...
分类:其他好文   时间:2014-05-22 12:28:28    阅读次数:278
"0x00a1bdb3" 指令引用的 "0x00000001" 内存。该内存不能为 "read"。
笔记本换成XP系统后,单击我的电脑或者别的时候,有时会提示,下面的错误提示: --------------------------- IExplore.exe - 应用程序错误 --------------------------- "0x00a1bdb3" 指令引用的 "0x00000001" 内存。该内存不能为 "read"。 要终止程序,请单击“确定”。 要调试程序,请单击“取消”。 ...
分类:数据库   时间:2014-05-22 12:51:43    阅读次数:472
android 实现输入法的国际化
先看我们怎么实现所有Activity展示的国际化,正常我们不会在原生态的setting中去实现,因为多数现在都是定制,我们也是,下面是我们自己的设置应用的语言切换实现功能代码: try { Class activityManagerNative = Class.forName("android.app.ActivityManagerNative"); Object am = a...
分类:移动开发   时间:2014-05-22 12:51:07    阅读次数:890
ZOJ3640 Help Me Escape(概率dp)
p Me Escape Time Limit: 2 Seconds      Memory Limit: 32768 KB Background     If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:其他好文   时间:2014-05-22 12:50:31    阅读次数:280
XTU1168:Alice and Bob(二维DP)
Problem Description Alice and Bob always love to play games, so does this time.  It is their favorite stone-taken game.  However, this time they does not compete but co-operate to finish this tas...
分类:其他好文   时间:2014-05-22 11:15:07    阅读次数:242
IO流(一) 待续....
在学习中总结的知识点,希望被吐槽,只有这样才能发现问题和不足  。。。 system:不能被实例化类(说明里面的是静态成员),描述系统的相关信息      out:标准输出,默认是控制台      in: 标准输入,默认是键盘      获取/设置系统属性信息,Properties getProperties()/setProperties()     ...
分类:其他好文   时间:2014-05-22 06:41:59    阅读次数:195
EventMachine 系列之简单的服务器
EventMachine 本文主要是 EventMachine如何建一个简单的Echo服务器post_init, unbind, receive_date 方法 EchoServer 如下代码,是建立一个简单的EchoServer #!/usr/bin/env rubyrequire 'rubygems'require 'eventmachine' class Ech...
分类:其他好文   时间:2014-05-22 11:14:26    阅读次数:181
1576条   上一页 1 ... 87 88 89 90 91 92 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!