Code example for AtomicBoolean

Methods: getAndSet

0
		}); 
	}}; 
	 
	public static void showInfiniteProgressDialoge(final Activity underlying_activity,final String title,final String message)
	{ 
		if(!isshowing.getAndSet(true)) 
		{ 
			ProgressHandler.underlying_activity = underlying_activity;
			ProgressHandler.title = title;
			ProgressHandler.message = message;
			Platform.getInstance().getHandler().post(startRunnable);			
			//set cancelable after 10 sec of delay 
			Platform.getInstance().getHandler().postDelayed(cancelableRunnable,10000);
		} 
		else 
		{ 
			if(progressDialog!=null)
			{ 
				Platform.getInstance().getHandler().post((new Runnable(){
					public void run() { 
					progressDialog.setTitle(title);