android
文章平均质量分 61
鲁面羊
码农
展开
-
android - Jni Environment 函数
typedef const struct JNINativeInterface *JNIEnv; const struct JNINativeInterface ... = { NULL, NULL, NULL, NULL, GetVersion, //获取JNI版本号 DefineCla转载 2014-02-08 11:22:25 · 555 阅读 · 0 评论 -
A powerful image downloading and caching library for Android
https://github.com/square/picasso转载 2014-02-09 23:00:29 · 512 阅读 · 0 评论 -
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 · 840 阅读 · 0 评论 -
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 · 1338 阅读 · 0 评论 -
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 · 1830 阅读 · 0 评论 -
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 · 1085 阅读 · 0 评论 -
android 系统信息读取
/** * 系统内存情况查看 */ public static String getMemoryInfo(Context context) { StringBuffer memoryInfo = new StringBuffer(); final ActivityManager activityManager = (ActivityManager) context .getSystem转载 2014-02-19 09:14:54 · 526 阅读 · 0 评论