thanks for ur code
On Tue, Mar 13, 2012 at 7:29 PM, harsh chandel harshdchan...@gmail.comwrote:
you can use this timer given in devloper guide
new CountDownTimer(3, 1000) {
public void onTick(long millisUntilFinished) {
TextView
Hi
thanks
i wonder if you help me with an example!
i implemented timer like this:
Timer t = new Timer();
TimerTask tt = new TimerTask() {
@Override
public void run() {
}
};
t.scheduleAtFixedRate(tt, 100, 1000);
my texview is this:
TextView tv =
You can take the sample here
http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog
for your reference.
Check the sample code marked by the section *Example ProgressDialog with
a second thread*http://developer.android.com/guide/topics/ui/dialogs.html#
Thanks and best
thank you very much
now my application works well
On Tue, Mar 13, 2012 at 11:21 AM, tsukishiro yamazaki
tsukishir...@gmail.com wrote:
You can take the sample here
http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog
for your reference.
Check the sample code marked by
you can use this timer given in devloper guide
new CountDownTimer(3, 1000) {
public void onTick(long millisUntilFinished) {
TextView txttimer=(TextView)
findViewById(R.id.timeremaining);
If I'm not mistaken, any code inside a TimerTask is running on a different
thread. This means that it won't have access to the main UI thread. So if
you put some code in there to update your Textview, you will probably end
up with an exception or error saying that it cannot access the main ui
6 matches
Mail list logo