Timertask Not Executing?
Here is my timer class, This class is designed to constantly update a timer in a view. However, when I run the app the first toast message is displayed to the screen but the second
Solution 1:
Using thread you cant update your UI for that you have to use runOnUiThread
youractivity.this.runOnUiThread(new Runnable(){publicvoidrun(){Toast.makeText(mContext, "Message", Toast.LENGTH_LONG).show();}});
Solution 2:
(Very late...just answering in case someone reach this question... scheduling a task doesn't garantee it will run on the proper time... it may take longer, sometimes much longer...)
Post a Comment for "Timertask Not Executing?"