xiaolongbao/src/main/java/com/tommytao/xiaolongbao/util/BaiduPusher.java
public void bind(final OnBindListener onBindListener) {

		// A hack to pass a final primitive which can be *MODIFIED*
		final ArrayList<Integer> counterFinal = new ArrayList<Integer>(1);
		counterFinal.add(0);

		bindInSingleShoot(new OnBindListener() {

			@Override
			public void onComplete(boolean isSucceed) {

				counterFinal.set(0, counterFinal.get(0) + 1);

				if (!isSucceed) {

					if (counterFinal.get(0) < MAX_NO_OF_RETRIES)
						bindInSingleShoot(this);
					else{
						if (onBindListener!=null)
							onBindListener.onComplete(false);
					}

					return;
				}

				if (onBindListener!=null)
					onBindListener.onComplete(true); 

			}

		});

//		bindInSingleShoot(onBindListener);

	}
/**
	 * 
	 * Retry function of bind is still malfunction, disable temp
	 * 
	 * @param onBindListener
	 *            Listener which will be triggered after completion of binding
	 */
Retry function of bind is still malfunction, disable temp

@param onBindListener
Listener which will be triggered after completion of binding
Retry function of bind is still malfunction disable temp @param onBindListener Listener which will be triggered after completion of binding
public void bind(final OnBindListener onBindListener) {
		final ArrayList<Integer> counterFinal = new ArrayList<Integer>(1);
		counterFinal.add(0);
		bindInSingleShoot(new OnBindListener() {
			@Override
			public void onComplete(boolean isSucceed) {
				counterFinal.set(0, counterFinal.get(0) + 1);
				if (!isSucceed) {
					if (counterFinal.get(0) < MAX_NO_OF_RETRIES)
						bindInSingleShoot(this);
					else{
						if (onBindListener!=null)
							onBindListener.onComplete(false);
					}
					return;
				}
				if (onBindListener!=null)
					onBindListener.onComplete(true); 
			}
		});
	}
public void bind ( final OnBindListener onBindListener ) { final ArrayList < Integer > counterFinal = new ArrayList < Integer > ( 1 ) ; counterFinal . add ( 0 ) ; bindInSingleShoot ( new OnBindListener ( ) { @ Override public void onComplete ( boolean isSucceed ) { counterFinal . set ( 0 , counterFinal . get ( 0 ) + 1 ) ; if ( ! isSucceed ) { if ( counterFinal . get ( 0 ) < MAX_NO_OF_RETRIES ) bindInSingleShoot ( this ) ; else { if ( onBindListener != null ) onBindListener . onComplete ( false ) ; } return ; } if ( onBindListener != null ) onBindListener . onComplete ( true ) ; } } ) ; }
Retry function of bind is still malfunction, disable temp
Retry function of bind is still malfunction disable temp
// A hack to pass a final primitive which can be *MODIFIED* //		bindInSingleShoot(onBindListener);