Skip to content Skip to sidebar Skip to footer

Why The Captured Image Keep On Changing?

I'm trying to pass captured image and valuefrom C to B, finally to listView A. When the list in Activity A is clicked, it will display the passed image on imageView and values o

Solution 1:

You may add bitmap array list (in your Activity A):

ArrayList<Bitmap> m_listBitmapItems = new ArrayList<Bitmap>();

in onItemClick of your listV:

Global.img = m_listBitmapItems.get(position);

in onActivityResult():

if (mClickedPosition == -1)
{ // if is icon button clicked
    m_listItems.add(Text);
    m_listBitmapItems.add(Global.img);
}
else
{
    m_listItems.set(mClickedPosition, Text);
    m_listBitmapItems.set(mClickedPosition, Global.img);
}

Post a Comment for "Why The Captured Image Keep On Changing?"