会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风中摆动的狗尾巴草
Think First Program Later
博客园
首页
新随笔
联系
管理
上一页
1
···
16
17
18
19
20
21
22
23
下一页
2015年5月4日
PhoneListenerService
摘要: AndroidManiFest加入的权限 需注册service组件需注册广播接收者 BootReceiver 中实现onReceive方法 收到广播启动服务public class...
阅读全文
posted @ 2015-05-04 15:15 尾巴草
阅读(281)
评论(0)
推荐(0)
2015年4月27日
LeetCode:Number of 1 Bits
摘要: Problems:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the ...
阅读全文
posted @ 2015-04-27 20:11 尾巴草
阅读(125)
评论(0)
推荐(0)
2015年4月24日
网络图片查看器
摘要: 1 public class MainActivity extends Activity implements OnClickListener { 2 3 private static final String TAG = "MainActivity"; 4 protec...
阅读全文
posted @ 2015-04-24 11:06 尾巴草
阅读(215)
评论(0)
推荐(0)
2015年4月22日
ContentObserver(短信监听器)
摘要: 1 package com.example.contentobserverdemo; 2 3 import android.app.Activity; 4 import android.app.ActionBar; 5 import android.app.Fragment; 6 import ...
阅读全文
posted @ 2015-04-22 15:57 尾巴草
阅读(488)
评论(0)
推荐(0)
短信备份
摘要: public void backupSms(View v) { // 1. 查出所有的短信 Uri uri = Uri.parse("content://sms/"); ContentResolver resolver = getContentResolver(); Cursor cur...
阅读全文
posted @ 2015-04-22 14:23 尾巴草
阅读(155)
评论(0)
推荐(0)
2015年4月15日
XML的解析和序列化
摘要: 1 public class Test extends TestCase { 2 3 public void test() throws IllegalStateException, RuntimeException, IOException { 4 writeX...
阅读全文
posted @ 2015-04-15 17:12 尾巴草
阅读(194)
评论(0)
推荐(0)
2014年6月16日
网络编程整理
摘要: 网络编程1.TCP/UDP特点1.TCP1.面向连接(流式套接字SOCK_STREAM)2.数据完整安全,可靠,有序PS:数据完整不丢失,有序,数据完整采用CRC循环冗余校验,数据不丢失采用重传机制和超时机制,有序的发送端的拆分编号,接收端排序组合。若在某一段时间内接收端到的为两个一样的数据,则选择...
阅读全文
posted @ 2014-06-16 16:19 尾巴草
阅读(199)
评论(0)
推荐(0)
Socket编程之Select模型
摘要: echoserver_select.c 1 #include 2 3 #define BACKLOG 10 4 #define PORT 8080 5 #define MAXCLIENT 20 6 #define LEN_BUF 255 7 8 fd_set grset; 9...
阅读全文
posted @ 2014-06-16 16:10 尾巴草
阅读(263)
评论(0)
推荐(0)
UDP编程之三
摘要: 三、组播模型muticast.c 1 #include 2 3 #define PORT 8088 4 5 #define MULTIIP "225.0.0.1" 6 7 int main(int argc,char **argv) 8 { 9 if(argc!=2)10 {...
阅读全文
posted @ 2014-06-16 16:04 尾巴草
阅读(153)
评论(0)
推荐(0)
UDP编程之二
摘要: 广播模型broadcast.c 1 #include 2 3 #define PORT 8088 4 5 int main(int argc,char **argv) 6 { 7 if(argc!=2) 8 { 9 printf("%s \n",argv[0])...
阅读全文
posted @ 2014-06-16 16:02 尾巴草
阅读(142)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
下一页
公告