Code example for ViewAnimator

Methods: showPrevious

0
 
		// It's a little klugey to use these two literal indices 
		// here, but for now it's ok. 
		mAboutButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				mAnimator.showPrevious();
				mViewIndex = 0;
			} 
		}); 
		 
		mLicenseButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				mAnimator.showNext();
				mViewIndex = 1;
			} 
		}); 
		 
		PackageManager packageManager = getApplication().getPackageManager();
		List<PackageInfo> packages = packageManager.getInstalledPackages(0);
		boolean googlePlayStoreInstalled = false;
		String googlePlayAppPackage = getString(R.string.google_play_app_package);