Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9172915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:28:02+00:00 2026-06-17T16:28:02+00:00

I have three screens like login,second and third. Based on my conditions i generate

  • 0

I have three screens like login,second and third. Based on my conditions i generate a status bar notification. If user click the notification i want to show third screen. It is working fine. But when i restart the app directly third screen is coming. I want to display third screen when notification is clicked. Other wise my first screen should be the login page.

I can display notification by using the following code

public void showNotification() 
    {
        NotificationManager notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
        Notification notification = new Notification(R.drawable.ic_launcher, "A New Message!", System.currentTimeMillis());


    Intent notificationIntent = new Intent(Preferences.this,PendingOffers.class);

    PendingIntent pendingIntent = PendingIntent.getActivity(Preferences.this, 0, notificationIntent, 0);

    notification.setLatestEventInfo(Preferences.this,"sample notification", "notificationMessage", pendingIntent);

    notification.flags |= Notification.FLAG_AUTO_CANCEL;

    notificationManager.notify(0, notification); 
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:28:03+00:00Added an answer on June 17, 2026 at 4:28 pm

    You can set flag for intent,
    eg

    FLAG_ACTIVITY_NO_HISTORY

    Reference : http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_HISTORY
    Check other flags too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Windows Forms I would like to have a small login screen the user
Have three classes User, Group and Field. Many to many relationship on User /
I have three tabs. I'd like to know if a tab can have more
I have a login screen with two textfields (username and password). When the user
I have an app with a login page that has three fields for three
I'd like to have login and logout on the first page of my grails
I have a flash game that consists of many different screens (Login, Menu, Game,
I have a table in my data base that has three columns: Screen, Icon,
I have a login screen and there is some registration button and login button.
Have three divs in a container that I want to float over a large

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.