![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
zhongshansubor
软件开发,C,C++,java,android,jni,jsp,cocos2d-x
展开
-
android递归查找文件
public static void findFilePath4(String path){try {File a = new File(path);String[] file = a.list();File temp = null;String path2;String paths = new String();for(int i = 0; i if(path原创 2014-06-24 15:34:54 · 4182 阅读 · 0 评论 -
android SDK版本与API版本对应表
原创 2014-08-05 11:53:02 · 1068 阅读 · 0 评论 -
android获取有效可用存储空间大小
android获取有效可用存储空间大小原创 2014-12-25 11:19:12 · 2074 阅读 · 0 评论 -
android获取扩展存储路径,TF卡、U盘等
/** * 获取扩展存储路径,TF卡、U盘 * 2014-5-21 * lifusheng * @return */ public static String getExternalStorageDirectory(){ String dir = new String(); try { Runtime runtime = Runtime.getRuntime(原创 2014-06-24 15:53:56 · 7648 阅读 · 0 评论 -
安卓系统获取mac地址
/** * 获取mac地址,如果wifi没有开启则尝试开启wifi并获取mac地址, * 为了防止NAR最好放在子线程内执行 */ public String getMac2() { String macSerial = ""; WifiManager wifiManager = (WifiManager) this.getSy原创 2017-01-20 13:40:31 · 1098 阅读 · 0 评论 -
安卓平台获取Mac地址
/** * 获取Mac地址,如果wifi没有开启则获取不到 * 开启WLAN是耗时操作,为了防止NAR建议放在子线程内执行 * 需要权限: * * * * 2017/5/25 li */public String getMacAddr() { String mac = ""; boolean ret = false; WifiManager wifiManager =原创 2017-05-25 13:54:35 · 441 阅读 · 0 评论