Code example for Message

Methods: getData

0
		 * Here we process the Handler queue and save the bitmaps. 
		 * 
		 * @param message A Message containing the bitmap to save, and some metadata. 
		 */ 
		public void handleMessage(Message message) {
			String name = message.getData().getString("name");
			int quality = message.arg1;
			Bitmap b = (Bitmap)message.obj;
			if(b != null) {
				saveFile(name, b, quality);
				b.recycle();
			} 
			else { 
				Log.d(LOG_TAG, "NULL BITMAP!!");
			} 
		} 
 
		/** 
		 * Saves a file. 
		 *  
		 * @param name the name of the file