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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:49:31+00:00 2026-05-25T11:49:31+00:00

In order to tell the user that a new version of an Android application

  • 0

In order to tell the user that a new version of an Android application is available, an AlertDialog is displayed asking the user to go on the Market in order to download the latest version.

The code responsible for sending the user to the Market is the following:

Intent intentMarket = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.app_name)));
mContext.startActivity(intentMarket);

With this approach and given this, the Android Market activity takes the top of the back stack and if the user quits the Market without returning back to the application, when he comes back by clicking on the application icon, he finds himself on the Market and not on the application which can be ambiguous for him.

Is there any solution to this?

Thanks!

  • 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-25T11:49:31+00:00Added an answer on May 25, 2026 at 11:49 am

    You need to set the flag FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. It’s just a matter of:

    intentMarket.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you please tell me the steps I need to follow in order to
In order to fully use LinqToSql in an ASP.net 3.5 application, it is necessary
We have a WiX fragment in a file SomeDialog.wxs that prompts the user for
I'm currently trying to set up integration/acceptance testing for a new rails 3 application
So I have a PropertyBag class that is intended to implement INotifyPropertyChanged. In order
I have an ecommerce MySQL database that stores order information in the table 'orders'
I have a tabbed application where I want the user to be able to
I am working on an iPhone application that has a UISearchBar which populates a
I have created a user defined type to contain some data that I will
I am developing an application that presents a company's twitter feed on a Facebook

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.