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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:12:59+00:00 2026-05-27T11:12:59+00:00

Here is the exception which I am getting while handler try start the Progress

  • 0

Here is the exception which I am getting while handler try start the Progress Dialog from application

android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
 at android.view.ViewRoot.setView(ViewRoot.java:531)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
 at android.app.Dialog.show(Dialog.java:241)
 at android.app.ProgressDialog.show(ProgressDialog.java:107)
 at android.app.ProgressDialog.show(ProgressDialog.java:90)

Please suggest solution if anybody knows

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

    Change Your Context To ActivityName.this

    Because this BadToken Exception ,So In your case you are adding the Progress Dialog to Your Activity Screen but passing the wrong context.

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

Sidebar

Related Questions

I have thread in onCreate which is getting content from web. While the content
I keep getting System.OutOfMemory exception in my WinForms App which is thrown while doing
Here I am getting the Exception when I am setting the recordsetting in AvAudioRecord.
I have this code try { //AN EXCEPTION IS GENERATED HERE!!! } catch {
Why do I keep on getting an exception-illegal operation on ResultSet? Here is the
I'm making a simple 2d game for the android platform, which works perfectly from
I am writing a multithreaded program in which i am getting exception java.lang.IllegalThreadStateException .
I am getting a following exception while enumerating through a queue: System.InvalidOperationException: Collection was
Iam getting a null pointer exception while sending some string text as an sms
I'm working on an application which accesses data from an Oracle 11g database. I'm

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.