Code example for Bitmap

Methods: compresssetImageBitmap

0
				} catch (FileNotFoundException e) {
					// TODO Auto-generated catch block 
					e.printStackTrace();
				} 
 
				photo.compress(Bitmap.CompressFormat.JPEG, 95, fOut);
 
				try { 
					fOut.flush();
				} catch (IOException e) {
					// TODO Auto-generated catch block 
					e.printStackTrace();
				} 
				try { 
					fOut.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block 
					e.printStackTrace();
				} 
 
				for (int i = 0; i < photos.length; i++) {
					if (photos[i].getVisibility() == View.INVISIBLE) {
						photos[i].setVisibility(View.VISIBLE);
						photos[i].setImageBitmap(photo);
						i = photos.length;
					} 
				} 
			}