- 博客(10)
- 资源 (2)
- 收藏
- 关注
转载 android 本地图片加载器
package com.example.imagescan; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import android.graphics.Bitmap; import android.graphics.BitmapFactory; i
2014-02-19 16:12:32
1144
原创 android正则匹配账号密码信息
/** 正则表达式,java与android稍有不同,如java中\s+ 需要加多\ 变成 \\s+, android匹配字符 *+ Zero or more (possessive). ?+ Zero or one (possessive). ++ One or more (possessive). {n}+
2014-02-19 12:44:30
1900
转载 android 系统信息读取
/** * 系统内存情况查看 */ public static String getMemoryInfo(Context context) { StringBuffer memoryInfo = new StringBuffer(); final ActivityManager activityManager = (ActivityManager) context .getSystem
2014-02-19 09:14:54
570
转载 android GPS开关
/** * 打开GPS *@date 2014-2-18 上午10:01:21 *@author luman */ public void turnGPSOn(Context ctx){ Log.e(TAG," turnGPSOn "); Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE");
2014-02-18 10:30:29
1397
转载 android遍历控件
//遍历当前界面所有控件 public List getAllChildViews(){ View view= this.getWindows.getDecorView(); return getAllChildViews(view); } //遍历一个ViewGroup public LIst getAllChildViews(View view){ List views
2014-02-14 10:09:12
898
转载 A powerful image downloading and caching library for Android
https://github.com/square/picasso
2014-02-09 23:00:29
543
转载 android - Jni Environment 函数
typedef const struct JNINativeInterface *JNIEnv; const struct JNINativeInterface ... = { NULL, NULL, NULL, NULL, GetVersion, //获取JNI版本号 DefineCla
2014-02-08 11:22:25
584
原创 java 类对象引用关系
内部类对象对外部类对象的引用关系 public class test { private int i=2; class inner{ public void print(){ System.out.println(i); } } } 以上内部类可以访问外部类的变量i,由于初始化内部类前要先初始化外部类,内部类对象将持
2014-01-14 22:21:06
617
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人