Code example for IntentFilter

Methods: addDataScheme

    public boolean isHelperIntent(Intent i) {
        return i.getBooleanExtra(HELPER_NOTIFICATION, false);
    private static void registerReceiver(Context context) {
        IntentFilter filter = new IntentFilter(HELPER_BROADCAST_ACTION);
        // Scheme is needed, otherwise only broadcast with no data will be catched. 
        mReceiver = new BroadcastReceiver() {
            public void onReceive(Context context, Intent intent) {
        context.registerReceiver(mReceiver, filter);
    private void handleNotificationIntent(Intent i) {
        final Uri data = i.getData();
Connect your IDE to all the code out there  Get Codota for Java