摘要:
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. 阅读全文
摘要:
if(checkNetWorkStatus(getApplicationContext())){ //当前网络可用}else{ //当前网络不可用 return -1;}public static boolean checkNetWorkStatus(Context context) { boolean result; ConnectivityManager cm = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVIC... 阅读全文