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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:05:06+00:00 2026-06-18T12:05:06+00:00

I am creating an Android widget. My widget has a View that when clicked

  • 0

I am creating an Android widget. My widget has a View that when clicked opens an Activity that’s look like an Dialog.

I have updated AndroidManifest.xml to style this activity like a dialog.

<activity 
    android:name=".Widget.Widget_OeffneDialog" 
    android:theme="@android:style/Theme.Dialog">
</activity>

That runs fantastic.

Now I open the app from this Widget and click on the home button (the app is now in the background) and then click on the wdget the Dialog shows – but the rest of the app shows behind the dialog.

Like here:
enter image description here

I do not want to see the previous activity below the dialog activity – how do I do this?

  • 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-18T12:05:07+00:00Added an answer on June 18, 2026 at 12:05 pm

    When you are launching the Widget_OeffneDialog activity from the launcher, Android is simply resuming the instance that is currently in the background – along with whatever backstack and history it contains.

    Try forcing your widget to launch a new instance of the activity instead.

    Intent intent = new Intent(this, A.class);
    intent.setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an Android widget that I want to update every night at midnight.
I am creating an Android Widget containg some contact info I discovered that the
Suppose I am creating an Android application that's like an SMS app. The requirements
I am creating a home automation app that has allows plugin views. I have
I have got the code: package com.finalyearproject.cookmefood; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; import
I am creating a simple Android widget with a typical usecase of having many
For a widget I am creating for the Android OS, I want the user
I'm creating an Android application that requires the following: Data from RSS feed gets
I'm creating an Android chat application. I want chat screen to include features like
I'm creating an Android game and I encountered a problem. I have 2 threads:

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.