Applying drawable to an ImageView from another Activity Layout
<p>Using <a href="https://github.com/jasonpolites/gesture-imageview" rel="nofollow">this</a> library, I'm trying to retrieve the edited image and place it on another activity's ImageView...</p>

<p><strong>Calling the function to set the edited drawable to the other ImageView:</strong></p>

<pre><code>Log.d("eiDR",gImageView.getDrawable().toString());
PreviewPostal pp = new PreviewPostal();
pp.setImage(gImageView.getDrawable());
</code></pre>

<p><strong>Setting the edited drawable to the other ImageView (in PreviewPostal Activity):</strong></p>

<pre><code>public void setImage(Drawable dr){
    Log.d("ppDR",dr.toString());
    //ImageView iv = (ImageView)this.findViewById(R.id.imageForTest);
    //iv.setImageDrawable(dr);
}
</code></pre>

<p>This logs the same drawable, but if I uncomment those two lines, it gives me a NPE.</p>

<p>Note: The activities are wrapped in a TabHost (each activity are a tab with their own layouts).</p>

<p>Thanks in advance!</p>

<p><strong>Edit: How I add the activities (tabs):</strong></p>

<pre><code>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);
</code></pre>
