摘要:
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
帕拉美
阅读(2117)
评论(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
帕拉美
阅读(2323)
评论(0)
推荐(0)
浙公网安备 33010602011771号