problem with my feel for HTC android application
<p>I want to create an application that takes a picture and redisplays the application.
But my feeling with my htc code does not work when I tested it on a samsung and it works.</p>

<p>My code:</p>

<pre><code>public class CameraDemo extends Activity {

    @Override 
    public void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.main); 
        final Button cameraButton = (Button) findViewById(R.id.button1); 
        cameraButton.setOnClickListener( new View.OnClickListener(){ 
         public void onClick(View v ){ 
          Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); 
          startActivityForResult(intent, 0); 
         } 
        }); 
    } 

    @Override 
    protected void onActivityResult(int requestCode, int resultCode, Intent data) { 
        if (requestCode== 0 &amp;&amp; resultCode == Activity.RESULT_OK){ 
            final ImageView iv = (ImageView) findViewById(R.id.imageView1);
            iv.setImageBitmap((Bitmap) data.getExtras().get("data"));
        } 
    }  
} 
</code></pre>

<p>Can you help me understand why it does not work on my htc sensation while it works on another phone.</p>

<p>THANKS.</p>
