通知がクリックされたときにメインアクティビティを開始します。これは、ユーザーがアプリにいなくても可能です。どうすればいいですか?あなたがPendingIntent
を必要とするすべてのクリック通知で活動を開始
NotificationCompat.Builder mBuilder =new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.diamond)
.setContentTitle("Crystallise")
.setContentText("making your thoughts crystal clear");
NotificationManager mNotificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(notifyID, mBuilder.build());