I want get image from url and set to stickerView and convert to bitmap by BitmapFactory for Put on another picture . I want add sticker to picture , but my sticker not in drawable , They are on the web to update.
I get a picture by URL
Bundle bundle = getIntent().getExtras();
if(bundle!=null){
imageURL = "example.com/app/upload/images/image.jpg";
}
ImageView imageView = (ImageView) findViewById(R.id.imgPreview1);
new DownloadImageTask(imageView).execute(imageURL);
I want , set image to setImageResource , But only accepts int
stickerView.setImageResource(my image get by URL in the imgPreview1);
@Override
public void setImageResource(int resId) {
setBitmap(BitmapFactory.decodeResource(getResources(), resId));
}
Please help thanks