Code example for AtomicInteger

Methods: addAndGet

0
	 * aapt-generated IDs have the high byte nonzero so this function 
	 * forks for the 2^24 first calls only... 
	 * (This function is implemented in View in API 17) 
	 */ 
	public static int generateViewId() { 
		return mNextViewId.addAndGet(1);
	} 
}