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

  • Home
  • SEARCH
  • 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 6764035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:32:49+00:00 2026-05-26T14:32:49+00:00

I am getting this error Thread [TimerDemo(185)id=307040256] (Suspended (exception ClassCastException)) UiApplication.getUiApplication() line: 462 TimerDemoTask$1.run()

  • 0

I am getting this error

Thread [TimerDemo(185)id=307040256] (Suspended (exception ClassCastException))  
UiApplication.getUiApplication() line: 462  
TimerDemoTask$1.run() line: 18  
BackGroundProcess(Application).dispatchInvokeLater(Runnable, Object, int) line: 1456    
BackGroundProcess(Application).doProcessNextMessage(Message) line: 2088 
BackGroundProcess(Application).processNextMessage(Message) line: 1530   
BackGroundProcess(Application).enterEventDispatcher() line: 1371    
TimerDemo.main(String[]) line: 15   

when I am trying to call a popUpScreen() using,

UiApplication.getUiApplication()).pushGlobalScreen(new PanicPopUP(), 0, 0)//Defined in TimerDemoTask class.

BackGroundProcess class which extends Application calls TimerDemoTask class which invokes popUpScreen() as above. I tried to cast Application and UiApplication in this way

((UiApplication)Application.getApplication()).pushGlobalScreen(new TimerDemoPopupScreen(),0,0);

but still getting the same exception.Any idea how to impelement 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-05-26T14:32:49+00:00Added an answer on May 26, 2026 at 2:32 pm

    Try like this in your Timertask demo class..
    i think you are not getting the eventlock

    synchronized (getEventLock()) {
    
        //with this UiEngine pushGlobal dialogs
    
        //whenever with the app in background
    
        UiEngine ui = Ui.getUiEngine();
        ui.pushGlobalScreen(new TimerDemo(), 1, UiEngine.GLOBAL_QUEUE);
    }
    

    like this and see if it solved your issue ….

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

Sidebar

Related Questions

I am getting this error: Exception in thread main java.lang.OutOfMemoryError: Java heap space at
I'm getting this error: Uncaught handler: thread main exiting due to uncaught exception java.lang.VerifyError
My server keeps getting this error when I run the client: Exception in thread
I am getting this following error during run time. ERROR: thread attach failed My
For the below program I'm getting this error message: Thread 2 terminated abnormally: Invalid
I keep getting a ClassCastException Exception in thread main java.lang.ClassCastException: java.lang.String cannot be cast
I'm getting this error: Cannot use a DependencyObject that belongs to a different thread
getting this error in logcat 09-15 14:38:09.944: ERROR/AndroidRuntime(1065): FATAL EXCEPTION: AsyncTask #1 09-15 14:38:09.944:
Getting this error: 2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler
Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to

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.