Home | History | Annotate | Download | only in client

Lines Matching defs:avatar

221      * Download the avatar image from the server.
223 * @param avatarUrl the URL pointing to the avatar image
224 * @return a byte array with the raw JPEG avatar image
227 // If there is no avatar, we're done
233 Log.i(TAG, "Downloading avatar: " + avatarUrl);
234 // Request the avatar image from the server, and create a bitmap
241 final Bitmap avatar = BitmapFactory.decodeStream(connection.getInputStream(),
246 // not resizing the avatar - we assume that the image we get from
248 Log.i(TAG, "Converting avatar to JPEG");
250 avatar.getWidth() * avatar.getHeight() * 4);
251 avatar.compress(Bitmap.CompressFormat.JPEG, 95, convertStream);
255 avatar.recycle();
262 Log.e(TAG, "Malformed avatar URL: " + avatarUrl);
264 // If we're unable to download the avatar, it's a bummer but not the
266 Log.e(TAG, "Failed to download user avatar: " + avatarUrl);