Skip to content

Instantly share code, notes, and snippets.

@Nutomic
Nutomic / CustomChooserIntent.java
Last active June 25, 2018 09:42
Create Intent Chooser with Application Whitelist. Based on https://gist.github.com/mediavrog/5625602
package de.videmic.view;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;