最近太忙了。好长时间没动博客,把原来的东西拿出来都重新温习下。
private void collapseStatusBar() {
int currentApiVersion = android.os.Build.VERSION.SDK_INT;
try {
Object service = getSystemService("s...
分类:
移动开发 时间:
2014-08-14 14:14:48
阅读次数:
192
Understanding the Space Used by ZFSBy Brian Leonard on Sep 28, 2010Until recently, I've been confused and frustrated by the zfs list output as I try t...
分类:
其他好文 时间:
2014-08-14 10:31:38
阅读次数:
390
1 public class Main { 2 3 /** 4 * 在写异常处理的时候,一定要把异常范围小的放在前面,范围大的放在后面, 5 * Exception这个异常的根类一定要刚在最后一个catch里面, 6 * 如果放在前面或者中间,任何异常都会和...
分类:
编程语言 时间:
2014-08-14 00:53:57
阅读次数:
235
Catch That Cow
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 46715
Accepted: 14673
Description
Farmer John has been informed of the location of a fugitiv...
分类:
其他好文 时间:
2014-08-13 19:00:57
阅读次数:
230
1 try 2 { 3 4 //SD卡路径 5 String filename =android.os.Environment 6 .getExternalStorageDirectory().getAbsolutePath() 7 ...
分类:
其他好文 时间:
2014-08-13 18:07:36
阅读次数:
161
1 try { 2 InputStream is2 = getResources().openRawResource(R.raw.info); 3 InputStreamReader isr2 = new InputStreamReader(is2,...
分类:
其他好文 时间:
2014-08-13 18:06:36
阅读次数:
154
1 try { 2 // 返回的字节流 3 InputStream is = getResources().getAssets().open("info.txt"); 4 // 当读取时,属于文本文件的时候,需要将它包装成字符...
分类:
其他好文 时间:
2014-08-13 18:00:06
阅读次数:
151
Problem Description
FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers which...
分类:
其他好文 时间:
2014-08-13 13:14:47
阅读次数:
196
public class HardWareUtils {/** * * 获取主板序列号 * * * * @return */public static String getMotherboardSN() {String result = "";try {File file = File...
分类:
编程语言 时间:
2014-08-13 12:41:26
阅读次数:
331
Problem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by bu...
分类:
其他好文 时间:
2014-08-12 21:41:14
阅读次数:
200