1.打开读写SD卡的权限需要在AndroidManifest.xml加入如下代码:
第一种方法:public void saveBitmap(String bitName, Bitmap mBitmap) {File f = new
File("/sdcard/" + bitName + ".pn....
分类:
移动开发 时间:
2014-05-26 00:35:51
阅读次数:
369
饿汉模式//饿汉式单例类.在类初始化时,已经自行实例化 public class
Singleton1 { //私有的默认构造子 private Singleton1() {} //已经自行实例化 private static final
Singleton1 single...
分类:
编程语言 时间:
2014-05-26 00:34:46
阅读次数:
345
#region 字符转码 /// /// 对指定字符串进行URL标准化转码 中文字符串转换成UTF-8
/// /// /// /// public static string UrlEncode(strin...
分类:
其他好文 时间:
2014-05-26 00:33:03
阅读次数:
244
BinRes.h#ifndef
_waxie_binary_resource_h_#define _waxie_binary_resource_h_#include class BinRes
{public: BinRes(); virtual ~BinRes();public: static v....
分类:
其他好文 时间:
2014-05-26 00:32:02
阅读次数:
271
本文在
http://www.cnblogs.com/darrenji/p/3606703.html(感谢博主的分享)基础上加入全国各省市,从文件中读取全国省市县,组成省市联动的选择标签在Model里定义Province
和 City public class Province ...
分类:
Web程序 时间:
2014-05-26 00:30:22
阅读次数:
596
import java.util.*;public class GN { public static
void main(String arg[]) { int a = 0;// 数字标记 int b = 0;// 位置标记 int time = 0;...
分类:
编程语言 时间:
2014-05-26 00:07:44
阅读次数:
327
今天在研究微信公众平台 自动接收发送消息的时候,在如下代码: public String
processRequest(HttpServletRequest request) { String respMessage = null; try {
System.err.println(inputStr...
分类:
微信 时间:
2014-05-25 23:47:40
阅读次数:
705
public ImageButton(Context context, AttributeSet
attrs, int defStyle) { super(context, attrs, defStyle); setFocusable(true); }
在...
分类:
移动开发 时间:
2014-05-25 23:24:31
阅读次数:
393
-----009-class.php ----- 1 2 3 4 5 一个PHP网页 6 7 8 9
";11 class Monitor12 {13 private $name = "显示器";14 public fun...
分类:
Web程序 时间:
2014-05-25 23:18:18
阅读次数:
301
继续展示使用表驱动法实现的例子。 例子1:
需求:输入一个月份,和一个年份,输出该月的天数。public class DaysPerMonth { private int
daysPerMonthLeapYear[] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 3...
分类:
其他好文 时间:
2014-05-25 19:41:21
阅读次数:
287