title: Android Layout Inflater
body: <p>I am trying to get a id from different xml file and i am tring to use inflater for that but it doesn't work. I have searched a lot but it didn't help me about by code </p>
  
  <p>This is my code;</p>
  
  <pre><code>            final LayoutInflater factory = getLayoutInflater();
          final View textEntryView = factory.inflate(R.layout.tab1, null);
          Bitmap thumbnail = (Bitmap)data.getExtras().get("data");
          ImageView image = (ImageView)textEntryView.findViewById(R.id.imageView1);
          image.setImageBitmap(thumbnail);
  </code></pre>
  
  <p>in this code I am getting the last photo which I took from sd card and I want to post this photo to the image view in a different xml. My code doesn't throw exeption but it does not post the image to the image view</p>
  
  <p>Thanks</p>