v.postDelayed(new Runnable() {
public void run() {
Intent intent2 = new Intent(MainActivity.this, End.class);
intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent content = PendingIntent.getActivity(MainActivity.this, 0, intent2, 0);
Notification notification = new Notification(R.drawable.ic_launcher, ".", System.currentTimeMillis());
notification.flags |= Notification.FLAG_AUTO_CANCEL;
notification.setLatestEventInfo(MainActivity.this, "도착 알림", ".", content);
mNotiManager.notify(1, notification);
}
}, 5 * 1000);
매니 페스트에 activity = mainActivty, End 두개 다 설정이 되어 있습니다.
탭을 클릭하면 End 액티비티가 떠야되는데 뜨질 않네요.