バックグラウンドで実行されているサービスがあり、新しいデータがある場合にユーザーに通知したいのですが、通知マネージャーを使用しましたが、通知が表示されますが、クリックしても何もしません (表示されるはずです)私はAndroidで初めてのアクティビティで、ここに私のコードがあります
NotificationManager notificationmanager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Notification notification = newNotification(R.drawable.shoppingcarticon, "Nouvelle notification de ShopAlert", System.currentTimeMillis());
notification.defaults |= Notification.DEFAULT_VIBRATE;
notification.flags |= Notification.FLAG_AUTO_CANCEL;
Intent intent = new Intent(this,GooglemapActivity.class);
PendingIntent activity = PendingIntent.getService(this, 0, intent, 0);
notification.setLatestEventInfo(this, "This is the title", "This is the text", activity);
notification.number += 1;
notificationmanager.notify(0, notification);
あなたの助けに感謝します。