Code example for File

Methods: exists, toString

0
	 * install apk 
	 *  
	 * @param url 
	 */ 
	private static void installApk() { 
		File apkfile = new File(saveFile);
		if (!apkfile.exists()) {
			return; 
		} 
		Intent i = new Intent(Intent.ACTION_VIEW);
		i.setDataAndType(Uri.parse("file://" + apkfile.toString()),
				"application/vnd.android.package-archive"); 
		mContext.startActivity(i);
 
	} 
	 
}