I have two classes A and B,I have used intent to pass the array text values from A to B successfuly.However I have two issues with process.
1- I can't send my images throught the intent.
2- I can't display the recieved values in class B.
How can I achieve this.
Here what I have done so far.
Class A:
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
Intent in = new Intent(this,
Mahad.class);
in.putExtra("temp_image", image);
in.putStringArrayListExtra("temp_identifier", identif);
in.putStringArrayListExtra("temp_price", price);
in.putStringArrayListExtra("temp_bedrooms", bedrooms);
in.putStringArrayListExtra("temp_address", address);
in.putStringArrayListExtra("temp_propType", propType);
startActivity(in);
}
Class B:
identif = getIntent().getExtras().getStringArrayList("temp_identifier");
price = getIntent().getExtras().getStringArrayList("temp_price");
bedrooms = getIntent().getExtras().getStringArrayList("temp_bedrooms");
address = getIntent().getExtras().getStringArrayList("temp_address");
propType = getIntent().getExtras().getStringArrayList("temp_propType");
image = getIntent().getByteArrayExtra("temp_image");//Not working