I have a VideoActivity which plays a video, what im trying to implement is when i click home button, i will display a notification, and once i click the notification it will bring the VideoActivity instance back to the front.
here's how i define the Intent for my notification:
Intent notificationIntent = new Intent(context, VideoActivity.class);
notificationIntent.addFlags( Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
but everytime i click the notification, it turns out that a new VideoActivity will be created.