Using this library, I'm trying to retrieve the edited image and place it on another activity's ImageView...
Calling the function to set the edited drawable to the other ImageView:
Log.d("eiDR",gImageView.getDrawable().toString());
PreviewPostal pp = new PreviewPostal();
pp.setImage(gImageView.getDrawable());
Setting the edited drawable to the other ImageView (in PreviewPostal Activity):
public void setImage(Drawable dr){
Log.d("ppDR",dr.toString());
//ImageView iv = (ImageView)this.findViewById(R.id.imageForTest);
//iv.setImageDrawable(dr);
}
This logs the same drawable, but if I uncomment those two lines, it gives me a NPE.
Note: The activities are wrapped in a TabHost (each activity are a tab with their own layouts).
Thanks in advance!
Edit: How I add the activities (tabs):
mTabHost = getTabHost();
// Tab Editar Imagem
TabSpec editImageSpec = mTabHost.newTabSpec("Imagem");
editImageSpec.setIndicator(setTabIndicator(getResources().getDrawable(R.drawable.tab_editimage_icon)));
Intent editImageIntent = new Intent(this, EditImage.class);
editImageIntent.putExtra("imagem", getIntent().getStringExtra("imagem"));
editImageSpec.setContent(editImageIntent);