上一页 1 ··· 5 6 7 8 9 10 11 下一页

2013年10月28日

java 内存分配全面解析

摘要: JVM是什么?首先要知道的是Java程序运行在JVM(Java Virtual Machine,Java虚拟机)上;可以把JVM理解成Java程序和操作系统之间的桥梁,JVM实现了Java的平台无关性,由此可见JVM的重要性。所以在学习Java内存分配原理的时候一定要牢记这一切都是在JVM中进行的,... 阅读全文

posted @ 2013-10-28 15:37 yujian_bcq 阅读(184) 评论(0) 推荐(0) 编辑

2013年6月27日

android 数据存储之SDK

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2013-06-27 20:05 yujian_bcq 阅读(1) 评论(0) 推荐(0) 编辑

android 数据存储之SharedPreferences

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2013-06-27 19:58 yujian_bcq 阅读(1) 评论(0) 推荐(0) 编辑

android 之Notification

摘要: http://blog.csdn.net/qinjuning/article/details/6915482 阅读全文

posted @ 2013-06-27 15:55 yujian_bcq 阅读(88) 评论(0) 推荐(0) 编辑

java 正则表达式

摘要: Pattern pattern = Pattern.compile("^[A-Za-z]+$");if (pattern.matcher(str).matches()) { //匹配 }else{ //不匹配 }1:汉字表达式 [\u4e00-\u9fa5]2:大小写字母表达式 ^[A-Za-z]+$3:数字表达式 [0-9]4:邮箱 \\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*5:手机号码 ^1\\d{10}$ 阅读全文

posted @ 2013-06-27 15:01 yujian_bcq 阅读(154) 评论(0) 推荐(0) 编辑

2013年6月13日

android 百度地图定位获取经纬度已经拿经纬度得到地址信息

摘要: 1:基本数据的初始化/** * 定位 */ private void initLocation() { mLocationClient = new LocationClient(getApplicationContext()); mLocationClient.registerLocationListener(new MyLocationListenner());LocationClientOption option = new LocationClientOption(); option.setOpenGps(true); // 打开gps option.setCoorType(" 阅读全文

posted @ 2013-06-13 15:31 yujian_bcq 阅读(1201) 评论(0) 推荐(0) 编辑

2013年6月4日

android 之onMeasure

摘要: http://www.eoeandroid.com/thread-102385-1-1.html 参考 http://blog.csdn.net/hqdoremi/article/details/9980481 更为详细: onMeasure方法在控件的父元素正要放置它的子控件时调用.它会问一个问题 阅读全文

posted @ 2013-06-04 10:58 yujian_bcq 阅读(396) 评论(0) 推荐(0) 编辑

android 之AsyncTask

摘要: 三个参数一次代表着doInBackground(Void... params);onProgressUpdate(Integer... values);onPostExecute(String result)函数对应的参数。调用代码:/** 获取LoadTast对象 */LoadTast loadtast = new LoadTast();/** 执行异步task */loadtast.execute();/** 继承自AsyncTast的LoadTast */ public class LoadTast extends AsyncTask<Void, Integer, String&g 阅读全文

posted @ 2013-06-04 10:41 yujian_bcq 阅读(156) 评论(0) 推荐(0) 编辑

2013年5月31日

android tabhost之RadioGroup

摘要: 1:布局文件<?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Linea 阅读全文

posted @ 2013-05-31 15:42 yujian_bcq 阅读(208) 评论(0) 推荐(0) 编辑

android 之ScrollView下套LIstview两种实现listview拓展的方式

摘要: 1:很简单 在自定义MyListView extends ListView下从写onMeasure方法就行了@Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); }2:计算listView的高度(注意:这种方式 阅读全文

posted @ 2013-05-31 10:02 yujian_bcq 阅读(147) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 下一页

导航