runOnUiThread是否连续运行

时间:2015-03-20 08:04:18

标签: android-runonuithread

我有一个Init_Params函数,可以从类外部调用,所以我在下面这样做了。哪个工作正常。 我需要知道,这个runOnUiThread是在后台连续运行还是在我打电话时运行一次。 我需要在启动时运行一次



public void Init_Params()
    {
    	runOnUiThread(new Runnable()
		{
			@Override
			public void run()
			{
				second_t1 = 0;	second_t2 = 0;
				t_delta = 0;		second_rec = 0;
				rec_size = 0;		iteration_cuntr = 0; start_delay = 0;
				run_flag = 0; Min_width = 100; Sec_width = 50; Sec_count = 0;
				Threshold = (float)0.9;
				Processing_time = 0;
			}
		});
    }




0 个答案:

没有答案