[Solved] Use same method for all option menu in whole Application Android

I have created following Class for openFile: public class OpenHelpFile { File cacheDir; Context context; /* Constructor */ public OpenHelpFile(Context context) { this.context = context; if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) cacheDir = new File(android.os.Environment.getExternalStorageDirectory(), “OOPS”); else cacheDir = context.getCacheDir(); if (!cacheDir.exists()) cacheDir.mkdirs(); try { File helpFile = new File(cacheDir, “OOPS.pdf”); if (!helpFile.exists()) { InputStream in = context.getAssets().open(“OOPS.pdf”); OutputStream … Read more