I have two different strings in different activity passing in another activity and assigning in imageview. How to do this?
Activity A:
Intent intent=new Intent(activity,B.class);
intent.putExtra("thumb_url", Image); // this is Bitmap
activity.startActivity(intent);
Activity C:
Intent intent = new Intent(activity,B.class);
intent.putExtra("thumb_urls", images)); //this is String
activity.startActivity(intent);
Activity B:
bundle = getIntent().getExtras();
if(bundle.containsKey("thumb_url") && bundle.containsKey("thumb_urls")
{
Bitmap bitmap=bundle.getParcelable("thumb_url");
String profile=bundle.getString("thumb_urls");
}
I don't know how to assign this in same imageview.
// bigger_image.setImageBitmap(bitmap); // how to assign in same imageview for bitmap and string.
// imageLoader.DisplayImage(profile, bigger_image); //