- 博客(6)
- 收藏
- 关注
原创 android前置摄像头的调用
第一种,MediaStore调用原生摄像头,不过既然是原生摄像头,就必须是原生系统,此方法就当没说 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra("camerasensortype", 2); // 调用前置摄像头 intent.putExtra("autofocus"
2015-01-16 01:16:54 3308
原创 winform+mysql
winform连mysql的驱动很多,开始学把我弄糊涂了,就用connector/.net就好 以下为常用的datahelper类,虽说和java类似,还是有些不一样的地方,自己体会。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thread
2015-01-13 03:22:55 430
转载 BF和KMP算法
BF的C实现 int Index(SString S,SString T,int pos) { /* 返回子串T在主串S中第pos个字符之后的位置。若不存在,则函数值为0。 */ /* 其中,T非空,1≤pos≤StrLength(S)。算法4.5 */ int i,j; if(1 { i=pos; j=1; while(i if
2014-02-27 19:08:30 613
转载 线性表
ArrayList的c实现 // Test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include "stdlib.h" //宏定义 #define TRUE 1 #define FAL
2014-02-26 19:57:41 368
原创 android socket的使用范例
Socket通常也称做”套接字“,用于描述IP地址和端口。android中的使用和java类似。 Java在包java.net中提供了两个类Socket和ServerSocket,分别用来表示双向连接的客户端和服务端。 首先来看客户端: 1. socket = new Socket(HOST, PORT);//服务端ip和端口 2. BufferedReader in = new Buff
2014-01-15 03:06:58 538
原创 我的博客之旅
正式开始我的csdn之旅了。一点点小激动。 之前用过很多的博客类网站,现在做程序员也半年了,希望通过这个平台来展现自己,提高自己。同时也监督自己,在更优秀的道路上不断前进。 最早之前就是qq空间了,后来51空间,人人网,百度空间,都玩过,也写过一些东西,记录我的青春岁月。最近使用的是新浪博客,用了接近四年,也在上面写了不少文章。 大多数是关于技术的,直到刚刚我写的一篇关于REST的总结因为博
2014-01-14 02:28:35 429
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人