Android Intent Set setBlankContentIntent(Context context, NotificationCompat.Builder builder)

Here you can find the source of setBlankContentIntent(Context context, NotificationCompat.Builder builder)

Description

set Blank Content Intent

Declaration

private static void setBlankContentIntent(Context context,
            NotificationCompat.Builder builder) 

Method Source Code

//package com.java2s;

import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;

import android.support.v4.app.NotificationCompat;

public class Main {
    private static void setBlankContentIntent(Context context,
            NotificationCompat.Builder builder) {
        Intent intent = new Intent("");
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
                | Intent.FLAG_ACTIVITY_NEW_TASK);
        PendingIntent contentIntent = PendingIntent.getActivity(context, 0,
                intent, 0);//from   w w  w  . j  av  a2s.  com
        builder.setContentIntent(contentIntent);
    }
}

Related

  1. initIntentFilterFromXml(IntentFilter inf, XmlPullParser xpp)
  2. pushNotification(Context context, int notId, PendingIntent pIntent, int iconRID, String title, String summary, boolean autoCancel, boolean vibrate, boolean light, boolean sound)
  3. updateIntentExplicitness(Context context, Intent implicitIntent)
  4. getAppStartIntent(Context context)
  5. dumpBundleKeys(Intent intent)
  6. setNewTaskFlag(@Nonnull Intent intent)
  7. createCallIntent(String phoneNumber)
  8. extractSMSmessages(Intent intent)
  9. registerReceiver(Context c, BroadcastReceiver receiver, IntentFilter f, boolean local)