Code example for ImageSwitcher

Methods: setImageURI

0
	public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
		mCursor.moveToPosition(position);
		int thumbId = mCursor.getInt(mIDFieldIndex);
		Uri uri = Uri.withAppendedPath(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, Integer
			.toString(thumbId));
		imageSwitcher.setImageURI(uri);
		mPosition = position;
	} 
 
	@Override 
	public void onNothingSelected(AdapterView<?> parent) {
	} 
 
	private class ExternalImagesAdapter extends BaseAdapter {
 
		public ExternalImagesAdapter() { 
		} 
 
		@Override 
		public int getCount() { 
Experience pair programming with AI  Get Codota for Java