摘要: /** * @param type * 1.Log.i 2.Log.e 3.Log.d * @param tag * @param msg * Log.i(tag, msg); */ static void sLog(int type ,String tag, String ... 阅读全文
posted @ 2012-07-02 17:23 aiplus 阅读(415) 评论(0) 推荐(0)
摘要: package com.demo.database;import java.io.File;import android.app.Activity; import android.app.AlertDialog; import android.content.ContentValues; ... 阅读全文
posted @ 2012-04-23 15:14 aiplus 阅读(199) 评论(0) 推荐(0)
摘要: File f=new File(“路径”)if(f.exist()){f.delete();}///权限 阅读全文
posted @ 2012-04-20 17:14 aiplus 阅读(139) 评论(0) 推荐(0)
摘要: 1. 主分区 挂载点 选择 / (最大空间分配,Ext4,Ext3皆可)2. 逻辑分区 home分区 挂载点 /home3. 交换分区 最小Ext3与Ext4的区别Linuxkernel 自 2.6.28 开始正式支持新的文件系统 Ext4。 Ext4 是 Ext3 的改进版,修改了 Ext3中部分... 阅读全文
posted @ 2012-04-19 09:55 aiplus 阅读(184) 评论(0) 推荐(0)
摘要: “Twenty years from now you will be more disappointed by the things you didn’t do than by the ones you did do. So throw off the bowlines, sail away fro... 阅读全文
posted @ 2012-04-09 09:44 aiplus 阅读(203) 评论(0) 推荐(0)
摘要: 工具代码 public class AsyncUploadImage extends AsyncTask { private static final String TAG = "AsyncUploadImage "; ImageView iv; private HttpURLConnection ... 阅读全文
posted @ 2012-04-01 15:37 aiplus 阅读(186) 评论(0) 推荐(0)
摘要: //应用 A 跳转到应用B指定界面//应用A调转的intent代码Intent intent = new Intent(); ComponentName comp = new ComponentName("com.xxx.xxxx", "com.xxx.xxx.BActivity"); ... 阅读全文
posted @ 2012-04-01 10:42 aiplus 阅读(2540) 评论(0) 推荐(0)
摘要: 正则表达式用于字符串处理、表单验证等场合,实用高效。现将一些常用的表达式收集于此,以备不时之需。注:以下内容来自网络,因正则表达库不同可能部分不适用匹配HTML标记的正则表达式:]*>.*?|评注:网上流传的版本太糟糕,上面这个也仅仅能匹配部分,对于复杂的嵌套标记依旧无能为力匹配首尾空白字符的正则表... 阅读全文
posted @ 2012-03-28 11:16 aiplus 阅读(117) 评论(0) 推荐(0)
摘要: /** * <p>将文件转成base64 字符串</p> * @param path 文件路径 * @return * @throws Exception */ public static String encodeBase64File(String path) throws Exception { File file = new File(path); FileInputStream inputFile = new FileInputStream(file); byte[] buffer = n... 阅读全文
posted @ 2012-03-15 11:16 aiplus 阅读(4357) 评论(0) 推荐(0)
摘要: /** * 将文件转成base64 字符串 * @param path 文件路径 * @return * @throws Exception */ public static String encodeBase64File(String path) throws Exception { ... 阅读全文
posted @ 2012-03-15 10:56 aiplus 阅读(606) 评论(0) 推荐(0)
悬浮按钮示例