1. Download our Official Android App: Forums for Android!

Apps How to display Custom camera image in other activity

Discussion in 'Android Development' started by Ali441, Jan 18, 2014.

  1. Ali441

    Ali441 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Jan 18, 2014

    Jan 18, 2014
    4
    0
    5
    Hi,

    I can't display the custom camera image in other Activity.
    I have an Activity called CamTestActivity for custom camera and this activity have onClick button .When click on this button display that image in other Activity called Imageset Activity, set that image in ImageView.

    PLease help me..

    Thanks
     

    Advertisement

  2. surlac

    surlac Newbie
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Jun 17, 2012

    Jun 17, 2012
    25
    4
    16
    Male
    You can use Intent.putExtra(String name, Parcelable value) to put your Bitmap to Intent. Then pass it to android.content.Context.startActivity().
    In second Activity call getIntent().getParcelableExtra(String name) to get the Bitmap.
     
    Ali441 likes this.
  3. surlac

    surlac Newbie
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Jun 17, 2012

    Jun 17, 2012
    25
    4
    16
    Male
    There is also possibility to send Intent as lightweight app-wide broadcast with LocalBroadcastManager. It won't use Parcelable, thus no overhead on (de)serialization.
     

Share This Page

Loading...