Now, I am trying to display AlertBox using AlertDialog after the car has hit 3 times with wall in alienrunner.
But, it shows error of "threadid=9": thread exiting with uncaught exception.
Source code of Objectpool.java, Line number 517:
if (os.hitCount >= 3) {
w.setVisibility(false);
SoundManager.getInstance().play(SoundManager.BOMB);
partMan.addEmitter(w.getTranslation(tmp), BASE_DIR, 15, "rubble", 1000, 15, 30, 7, false);
EventRegistrator.getInstance().register(EventRegistrator.CONCUSSION);
//custom code start...
Logger.log("Ticker will be paused")
Ticker.setPaused(false);
AlienRunner.getInstance.showAlert();
//custom code ends...
}
Any suggestions!