摘要: private FileReader m_Fr; private BufferedReader m_Readbuf; public int ReadStreamFile(String filepath) { //String str = Environment.getExternalStorageDirectory() + "/" + "test.apk"; //str == "mnt/sdcard/test.apk"; File file = new File(filepath); if(!file.exists()) { Log. 阅读全文
posted @ 2012-02-01 13:45 瓦楞球 阅读(2089) 评论(0) 推荐(0) 编辑
摘要: if(checkNetWorkStatus(getApplicationContext())){ //当前网络可用}else{ //当前网络不可用 return -1;}public static boolean checkNetWorkStatus(Context context) { boolean result; ConnectivityManager cm = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVIC... 阅读全文
posted @ 2012-02-01 13:28 瓦楞球 阅读(2318) 评论(0) 推荐(0) 编辑