public static String getDataFromCache(Context context, String path, String filename) {
		BufferedReader reader = null;
		StringBuffer data = new StringBuffer();
		try {
			File cachedir = new File(context.getCacheDir(), path);
			File cachefile = new File(cachedir, filename);
			if (cachefile.exists()) {
				reader = new BufferedReader(new FileReader(cachefile));
				String tempString = null;
				while ((tempString = reader.readLine()) != null) {
					data.append(tempString);
				}

				reader.close();
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (reader != null) {
				try {
					reader.close();
				} catch (Exception e1) {
				}
			}
		}

		return data.toString().length() != 0 ? data.toString() : null;

	}