Как открыть фрагмент страницы, когда нажимается уведомление в андроиде
Я пытаюсь открыть фрагмент, когда нажимаю уведомление в панели уведомлений. Моя структура приложения:
базовая активность с меню навигационного ящикакакой-то фрагмент, который открывается из меню
b.setOnClickListener(new OnClickListener() {
@SuppressWarnings({ "deprecation", "static-access" })
public void onClick(View v) {
w_nm=(NotificationManager) getActivity().getSystemService(getActivity().NOTIFICATION_SERVICE);
Notification notify=new Notification(R.drawable.notnificationlogo,waternoti,System.currentTimeMillis());
Intent notificationIntent = new Intent(getActivity(), Abc.class);
PendingIntent pending=PendingIntent.getActivity(getActivity(), 0,notificationIntent, 0);
notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
| Intent.FLAG_ACTIVITY_SINGLE_TOP );
notify.flags = Notification.DEFAULT_LIGHTS | Notification.FLAG_AUTO_CANCEL;
notify.setLatestEventInfo(getActivity(),waternoti,waternoti1, pending);
w_nm.notify(0, notify);
Может кто-нибудь сказать мне, как связать со следующей страницей фрагмента (настоящий код находится в классе, который расширяет фрагмент)