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

2014年1月3日

android sql Cursor

摘要: Cursor 是每行的集合。使用 moveToFirst() 定位第一行。你必须知道每一列的名称。你必须知道每一列的数据类型。Cursor 是一个随机的数据源。 所有的数据都是通过下标取得。Cursor所指向的就是每一条数据。方法:close() 关闭游标,释放资源getColumnCount() 返回所有列的总数getColumnIndex(String columnName) 返回指定列的名称,如果不存在返回-1getColumnIndexOrThrow(String columnName) 从零开始返回指定列名称,如果不存在将抛出IllegalArgumentException 异常。g 阅读全文

posted @ 2014-01-03 16:12 yujian_bcq 阅读(138) 评论(0) 推荐(0) 编辑

sql 语句操作

摘要: 插入:insertintotable1(field1,field2)values(value1,value2)db.execSQL(sql)db.execSQL(sql, bindArgs)1):str = "insert into UMUserMapStore(StoreID,UserID,LStoreID,IsValid) values("+ operator.StoreID+ ","+ empSetStore.UserID+ ","+ operator.LStoreID + ",'Y')";d 阅读全文

posted @ 2014-01-03 10:59 yujian_bcq 阅读(174) 评论(0) 推荐(0) 编辑

2013年12月13日

android 界面悬浮框实现

摘要: // 定义浮动窗口布局 private View mFloatLayout; // 定义浮动窗口布局对象 private WindowManager.LayoutParams wmParams; // 创建浮动窗口设置布局参数的对象 private WindowManager mWindowManager;@SuppressWarnings("static-access") private void createFloatView() { wmParams = new WindowManager.LayoutParams(); // 获取的是WindowManagerImp 阅读全文

posted @ 2013-12-13 18:04 yujian_bcq 阅读(1268) 评论(0) 推荐(0) 编辑

android activity四种启动模式

摘要: 1.standard这种模式下载任务栈里,每次启动这个acti都会在任务里添加这个acti,不论这个任务栈里之前有没有这个acti startActivity(new Intent(this,MainActivity.class));2.singleTop这种模式下载任务栈里,每次启动这个acti都会检查任务栈顶是否存在当前的这个acti,如果存在就不去创建;否则就去创建新的acti startActivity(new Intent(this,MainActivity.class)); 3.singleTask这种模式下载任务栈里,每次启动这个acti时,都会从任务栈的顶部开始往下遍历,直.. 阅读全文

posted @ 2013-12-13 17:42 yujian_bcq 阅读(220) 评论(0) 推荐(0) 编辑

2013年12月9日

andorid 自定义view属性declare-styleable

摘要: 1. reference:参考某一资源ID。 (1)属性定义: (2)属性使用: 2. color:颜色值。(1)属性定义: (2)属性使用: 3. boolean:布尔值。 (1)属性定义: (2)属性使用: 4. dimension:尺寸值。 (1)属性定义: (2)属性使用: 5. float:浮点值。 (1)属性定义: (2)属性使用: 6. integer:整型值。 (1)属性定义: (2)属性使用: 7. string:字符串。 (1)属性定义: (2)属性使用: 8. fraction:百分数。 (1)属性定义: (2)属性使用... 阅读全文

posted @ 2013-12-09 11:30 yujian_bcq 阅读(440) 评论(0) 推荐(0) 编辑

2013年11月26日

java 设计模式之单利模式以及代理模式(静态)

摘要: 1:单利模式:publicclassSingleton {privatestaticSingletonuniqueInstance=null;privateSingleton() {// Exists only to defeat instantiation. }publicstaticSingleton getInstance() {if(uniqueInstance==null) {uniqueInstance=newSingleton(); }returnuniqueInstance; }// Other methods...}代理模式(静态):package com; /** * 车站 阅读全文

posted @ 2013-11-26 17:19 yujian_bcq 阅读(234) 评论(0) 推荐(0) 编辑

java 设计模式之工厂模式与反射的结合

摘要: 工厂模式: /*** @author Rollen-Holt 设计模式之 工厂模式*/interface fruit{public abstract void eat();}class Apple implements fruit{public void eat(){System.out.print... 阅读全文

posted @ 2013-11-26 16:33 yujian_bcq 阅读(269) 评论(0) 推荐(0) 编辑

java 反射

摘要: 反射详解链接:http://www.cnblogs.com/rollenholt/archive/2011/09/02/2163758.html开始方法 Class cl = Class.forName(mc.getClass().getName());Java Annotation 详解http://www.cnblogs.com/phoebus0501/archive/2011/02/21/1960077.htmlgetFields()获得某个类的所有的公共(public)的字段,包括父类。getDeclaredFields()获得某个类的所有申明的字段,即包括public、private 阅读全文

posted @ 2013-11-26 13:47 yujian_bcq 阅读(140) 评论(0) 推荐(0) 编辑

2013年11月25日

android 图片拍照图片旋转的处理方式

摘要: 第一种:String str=path; /** * 读取图片属性:旋转的角度 * * @param path * 图片绝对路径 * @return degree旋转的角度 */ private void readPictureDegree(String filePath) { int angle = 0; try { ExifInterface exifInterface = new ExifInterface(filePath); int orientation = exifInterface.getAttributeInt( ... 阅读全文

posted @ 2013-11-25 10:11 yujian_bcq 阅读(846) 评论(0) 推荐(0) 编辑

2013年11月20日

html base1

摘要: 标题: 标题(Heading)是通过 - 等标签进行定义的。 定义最大的标题。 定义最小的标题。段落: HTML 文本格式化:HTML样式:结合css: 外部访问方式: 定义资源引用。 #gg{ color: #710909; font-weight: bold; font-size: 50... 阅读全文

posted @ 2013-11-20 21:50 yujian_bcq 阅读(196) 评论(0) 推荐(0) 编辑

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

导航