摘要: [该问题的StackOverflow网址] :http://stackoverflow.com/questions/867518/how-to-make-an-android-spinner-with-initial-text-select-one 阅读全文
posted @ 2013-05-10 13:53 Binary-Stream 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 资料来源 : http://www.cnblogs.com/lqminn/archive/2012/10/16/2726583.html系统版本:Android 2.2以上类:ThumbnailUtils功能函数:static Bitmap createVideoThumbnail(String filePath, int kind)使用实例:ThumbnailUtils.createVideoThumbnail(absPath, Thumbnails.MINI_KIND); 阅读全文
posted @ 2013-03-01 16:12 Binary-Stream 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 原文:http://stackoverflow.com/questions/4088080/android-sqlite-get-boolean-from-database目标:从 android sqlite 中获取boolean值方法:boolean value = cursor.getInt(boolean_column_index)>0;[IT技术网站推荐](1)StackOverflow :http://stackoverflow.com/(2)GitHub :https://github.com/ 阅读全文
posted @ 2013-02-26 14:55 Binary-Stream 阅读(973) 评论(0) 推荐(0) 编辑
摘要: 实现方式:一、mListView.setSelection(adapter.getCount()-1);二、在ListView的xml添加以下属性:android:stackFromBottom="true"android:transcriptMode="alwaysScroll" 阅读全文
posted @ 2013-01-12 10:41 Binary-Stream 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: 目标:按钮未按下时为(一)状态;按钮按下时为(二)状态,并在事件执行时保持该状态;事件结束后恢复为(一)状态;实现过程:(1) btn_status的xml代码:1 <?xml version="1.0" encoding="utf-8"?>2 <selector xmlns:android="http://schemas.android.com/apk/res/android" >3 <item android:state_pressed="true" android:drawabl 阅读全文
posted @ 2012-11-27 11:46 Binary-Stream 阅读(927) 评论(0) 推荐(0) 编辑
摘要: 1、 目标 :在SQLite中新加一列 操作过程: alter table [表名] add column [列名] [列数据类型] [列默认值]; 示例 : alter table comment add column user_name int default(0);2、 目标:修改列名(字段名) 操作过程:以下资料来源——http://www.cnblogs.com/luxiaofeng54/archive/2011/07/13/2104910.html // Sqlite 不支持直接修改字段的名称,因此,需要以下几个步骤: ... 阅读全文
posted @ 2012-11-19 16:11 Binary-Stream 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 英文原文:http://www.revsys.com/blog/2012/may/01/three-things-you-should-never-put-your-database/作者 :Frank Wiles转载地址:http://justjavac.com/other/2012/05/15/three-things-you-should-never-put-your-database.html三种东西永远不要放到数据库里改进你的系统的最好的方法是先避免做“蠢事”。 我并不是说你或你开发的东西“蠢”,只是有些决定很容易被人们忽略掉其暗含的牵连, 认识不到这样做对系统维护尤其是系统升级带. 阅读全文
posted @ 2012-11-19 10:40 Binary-Stream 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 开发平台:Android 4.1.2在去除字符串中的换行符(\n)的时候,写成str.replace("\\n", "")才能正确执行。str.replace("\n","") ,str.replaceAll("\\n",""),str.replaceAll("\n","")均替换失败。参考资料: http://www.oschina.net/code/snippet_107039_6026——java去除字符串中的空格、回车、换行符、 阅读全文
posted @ 2012-11-14 16:00 Binary-Stream 阅读(10872) 评论(0) 推荐(0) 编辑
摘要: 本文系转载,原文地址:http://dev.10086.cn/cmdn/bbs/thread-58334-1-1.htmlkeystore信息的查看:keytool -list -v -keystore e:\keytool\yushan.keystore -storepass 123456显示内容:---------------------------------------------------------------------Keystore 类型: JKSKeystore 提供者: SUN您的 keystore 包含 1 输入别名名称: yushan创建日期: 2009-7-29项 阅读全文
posted @ 2012-11-09 19:20 Binary-Stream 阅读(5198) 评论(0) 推荐(0) 编辑
摘要: 一、调用系统相册App,浏览所用图片 Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setType("image/*"); startActivity(intent);二、调用系统相册,并从中选择一张照片 Intent intent = new Intent(); intent.setAction(Intent.ACTION_GET_CONTENT); intent.setType("image/*"... 阅读全文
posted @ 2012-09-25 15:36 Binary-Stream 阅读(5877) 评论(2) 推荐(0) 编辑