How can I open a .pdf file with a specific app like adobe reader using an intent? Something like:
Intent intent = getPackageManager().getLaunchIntentForPackage("com.package.name");
intent.setData(Uri.fromFile(file)); //? - set file to open
startActivity(intent);
I don't want to select an app from a list, the intent must open the file using the specified app.