(Button)findViewById(R.id.start).setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { new Timer().schedule(new TimerTask() { @Override public void run() { new Handler().post(new Runnable() { @Override public void run() { new myAsyncTask().execute(); } }); } }, 0, 10000); } });
I get exception : java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Thnaks in advance -- Subin Sebastian http://in.linkedin.com/in/subinsebastien https://plus.google.com/subin<https://plus.google.com/118262481642737404812> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en