调用系统Intent剪裁图片 /** * 调用系统Intent剪裁图片 * @param
context * @param uri * @param w * @param h */ public static void startP...
分类:
移动开发 时间:
2014-05-06 00:29:43
阅读次数:
441
public InputStream getConnect(String uri) {
//获取网址链接,得到数据流 InputStream is=null; try { URL myUrl=new URL(uri); //获取UR...
分类:
其他好文 时间:
2014-05-06 00:28:45
阅读次数:
339
1、系统预定义异常no_data_foundcase_not_foundcursor_already_openinvalid_number--no_data_found异常set
serveroutput on;--&NO表示从控制台输入参数DECLARE v_ename varchar2(30)....
分类:
数据库 时间:
2014-05-05 23:45:21
阅读次数:
427
using System;using System.Collections.Generic;using
System.ComponentModel;using System.Data;using System.Drawing;using
System.IO;using System.Linq;usi...
分类:
其他好文 时间:
2014-05-05 23:22:07
阅读次数:
290
文件存储的用途:
A File object is suited to reading or writing large amounts of data in start-to-finish order without skipping around. For example, it's good for image files or anything exchanged over a netw...
分类:
移动开发 时间:
2014-05-05 13:01:21
阅读次数:
339
// BTree.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include"stdlib.h"
#include"malloc.h"
#define BT BTreeNode
#define MS 10
typedef struct BT{
char data;
struct BT *left;
struct BT *right;
}BT;
...
分类:
其他好文 时间:
2014-05-04 12:45:34
阅读次数:
365
实测机为联想A820T安卓4.1.2
一·准备工作
1·R.E管理器 (安卓)
2·获取root权限
3·十六进制编辑器(UltraEdit_SC17_PC版或者直接安卓版的编辑器也行)
二·步骤
1·用R.E管理器按路径data/nvram/APCFG/APRDEB/WIFI找到WiFi这个文件(路径可能各种手机不相同)
2·复制WiFi文件到/sdcard/下面的任意地方,...
分类:
其他好文 时间:
2014-05-04 12:44:05
阅读次数:
396
先从中国天气网得到数据('http://www.weather.com.cn/data/cityinfo/'+城市编码),每个城市都有各自的编码,如何得到用户所在地的城市编码呢?用一个网页就是专门干这个的!http://61.4.185.48:81/g/...
分类:
编程语言 时间:
2014-05-04 00:27:18
阅读次数:
494
有时候我们需要使用ajax提交去提交form的值,这样就需要使用serialize()去获取form的值,但这样获取的值如果有中文,会乱码,原因和解决方法如下:
原因:.serialize()自动调用了encodeURIComponent方法将数据编码了
解决方法:调用decodeURIComponent(XXX,true);将数据解码
如:
var data=$('#addf...
分类:
Web程序 时间:
2014-05-04 00:12:51
阅读次数:
274
Zxing图片识别 从相册选取二维码图片进行解析总结
在Zxing扫描识别和图片识别的解析对象是相同的
本文分三个步骤:
1 获取相册的照片
2 解析二维码图片
3 返回结果
1) 获取相册照片
google对4.4的uri做了点改动 为了适配多种手机 需要做一个判断版本
在Activity中开启相册:
Intent innerIntent = new Intent(); // "android.intent.action.GET_CONTENT"
if (Build.VE...
分类:
其他好文 时间:
2014-05-03 17:36:19
阅读次数:
389