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 7503947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:24:12+00:00 2026-05-29T21:24:12+00:00

My questions are regarding Tasks and the Back Stack and not other aspects of

  • 0

My questions are regarding Tasks and the Back Stack and not other aspects of the implementation.

I have a simple application with two activities.

Activity 1: Display list of items. Click on item starts activity 2 for specified item

Activity 2: Download PDF for item and then display using ACTION_VIEW (application/pdf) intent

Any launch of the application should re-use the existing list activity (or create a new one). I don’t want multiple lists (that is, only one Tasks). (Is launchMode = singleTask on activity and implement onNewIntent() the right approach for this?)

Also, any click on detail should start the detail page which will only show a “downloading” status, once the downloading is done, the PDF viewer is launched and the detail activity is “finished”. The back button from PDF should go back to the list. (If I finish() the detail activity when I start the PDF viewer activity, will the detail activity just drop out of the back stack cleanly?)

The status bar notifications should re-launch the existing. (Should my intent be the same as the main applicaton launch just with Extra data for the details of the new data?)

The net result is that the Back Stack should only have 4 states, one being intermediate:, and the application should only ever be associated with one Task:

(activity 1)

(activity 1) => (activity 2 – downloading)

(activity 1) => (activity 2 – launching viewer) => (PDF viewer) intermediate

(activity 1) => (PDF Viewer)

Thanks,
Mike

  • 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-05-29T21:24:13+00:00Added an answer on May 29, 2026 at 9:24 pm

    Yay! I got a tumbleweed award for this 🙂

    To answer my own question, my approach seems to be working fine. Good job, Mike!

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

Sidebar

Related Questions

I actually have two questions regarding the same problem but I think it is
I actually have two questions regarding exception/error handling in the iPhone app that I
Two questions regarding task tags: What other task tags like TODO, is available in
I have couple questions regarding some C++ rules. Why am I able to call
I have several questions regarding filenames and the iPod Library. I understand I can
I have seen different questions regarding this, but I still find this topic to
I've read several questions regarding UAC and privilege elevation but I've not found a
I have some questions regarding calendars Is there any good calendar generates for either
I have a couple of questions and doubts to regarding PowerShell and .NET Classes.
Hi I have some questions regarding Looper.prepare() and AsyncTasks. In my app I have

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.