Code example for AtomicInteger

Methods: addAndGet

	 * 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);
Stop searching for code, let great code find you!  Add Codota to your java IDE