How can i open Activity when notification click
问题 I need use notification with click event, i have notification method but this method don't open my activity. My code: private void sendNotification(String msg) { NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) .setContentTitle("EXX") .setSmallIcon(R.drawable.ic_launcher) .setStyle(new NotificationCompat.BigTextStyle() .bigText(msg)) .setContentText(msg) .setOngoing(true); mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build()); } is this possible, thanks. 回答1