Code example for Timer

0
	private Animation mAnimation;
	private Timer mTimer;
	private TimerTask mTimerTask;
 
	public SingleProgressDialog(Context context, String message, int delay) {
		mTimer = new Timer();
		mContext = context;
		mMessage = message;
		mDelay = delay;
	} 
 
	public synchronized void show() { 
		SurespotLog.v(TAG, "show");
 
		if (mSingleProgressDialog == null) {
 
			LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
			View layout = inflater.inflate(R.layout.dialog_progress, null, false);
 
			TextView text = (TextView) layout.findViewById(R.id.text);
Connect your IDE to all the code out there  Get Codota for Java