Code example for ImageSwitcher

Methods: setImageURI

0
					public void run() { 
						// TODO Auto-generated method stub 
						if (lecture){
							playButton.setVisibility(View.INVISIBLE);
							mCurrentPosition = (mCurrentPosition + 1) % mImages.size();
							mImageSwitcher.setImageURI(Uri.fromFile(mImages
									.get(mCurrentPosition)));
							myHandler.postDelayed(myRunnable, 200L);
						} 
					} 
				}; 
				myHandler.postDelayed(myRunnable, 40L);
			} 
			 
			return true; 
		} 
 
		private void tapOnScreenHandler() { 
			// TODO Auto-generated method stub 
			switch (etat) {
			case Init: