First, use the following help to download a large bitmap
http://developer.android.com/training/displaying-bitmaps/load-bitmap.html
secondly, to write to the image and save, you can use the canvas
I am doing something similar in the application. Use Canvas.
I edited a piece of my code that actually adds a couple of other images to the background and stuff too.
Meat Code:
private static Bitmap getPoster(...) { Bitmap background = BitmapFactory.decodeResource(res, background_id) .copy(Bitmap.Config.ARGB_8888, true); Canvas canvas = new Canvas(background); Typeface font = Typeface.createFromAsset(res.getAssets(), FONT_PATH); font = Typeface.create(font, Typeface.BOLD); Paint paint = new Paint(); paint.setTypeface(font); paint.setAntiAlias(true); paint.setColor(Color.WHITE); paint.setStyle(Style.FILL); paint.setShadowLayer(2.0f, 1.0f, 1.0f, Color.BLACK); float fontSize = getFontSize(background.getWidth(), THE_QUOTE, paint);
Put your own version of this class and give it the image id and everything else. It returns a bitmap so that you do whatever you want (display it in image view mode, allow the user to save it and set it as a wall panel).
blganesh101
source share