- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 锁屏
private PowerManager.WakeLock mFullWakelock = null; private void acquireFullWakelock(Context context) { PowerManager localPowerManager = (PowerManager)context.getSystemService(Context.P
2012-01-31 09:30:48 498
转载 浅析 Java Thread.join()
转载自http://www.blogjava.net/jnbzwm/articles/330549.html 一、在研究join的用法之前,先明确两件事情。 1.join方法定义在Thread类中,则调用者必须是一个线程, 例如: Thread t = new CustomThread();//这里一般是自定义的线程类 t.start();//线程起动 t.join();//此处会
2012-01-30 18:06:15 724
转载 Java I/O系统
转载自:http://www.cnblogs.com/jerrychoi/archive/2010/03/16/1687589.html 一、基本使用总结 1. read方法是阻塞方法,也就是如果流对象中无数据可以读取时,则read方法会阻止程序继续向下运行,一直到有数据可以读取为止。 2. 由于‘\’是Java语言中的特殊字符,所以在代码内部书写文件路径时,例如代表“c:\tes
2012-01-18 15:34:18 440
转载 跑马灯效果
TextView android:layout_width="100px" android:layout_height="wrap_content" android:textColor="@android:color/white" android:ellipsize="marquee" android:focusable=
2012-01-10 19:25:10 508
原创 docx,xlsx等在android中的type
文件格式 类型 docx application/vnd.openxmlformats-officedocument.wordprocessingml.document xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet pptx application/vnd.o
2012-01-06 11:08:08 1143
原创 使用到的透明色Activity
如果一个应用仅仅只是打开一个网页,我们可以开启一个activity A,然后在activity的oncreate中开启这个网面,在startActivity后就需要销毁A。但仔细看效果将会发现有闪屏的感觉。解决的方法,可以将该activity设置为透明色。 方法如下: android:label="@string/search_files_title"
2012-01-04 17:35:14 995
Actionbar,fragment,viewpager的使用--模仿android4联系人效果
2013-01-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人