i have a XML file on the exteal storege, and i have a different apps which able to open this file format.
i am going to sent implicit intent like this in order to find apps to open XML file
public static boolean isIntentAvailable(Context context, Intent intent) {
List<ResolveInfo> list = context.getPackageManager().queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);
retu !list.isEmpty();
}
this method has 2 args
question is how to create intent for second arg?
i have only path to file which i need to open and i tryed this way
Intent intent = new Intent(**path to file**);
but it doesn't work...
How to create this intent properly?
