How to use intent params to verify the callers calling onActivityResults() method?
<p>I'm wondering if it is possible to verify the the callers calling onActivityResult() method of  startActivityForResult(); 
Here is the situation: I have two widgets in my home screen for invoking the default camera and video of device. Intent has been used with following params for camera: android.provider.MediaStore.ACTION_CAMERA_CAPTURE and video: android.provider.MediaStore.ACTION_VIDEO_CAPTURE.
After this i have called the startActivityForResult(intent, 0) for both from their respective onClick() methods. I have one onActivityResult() method and want to perform some task using if else statements. Now i want to know how to bifurcate the calling intents and hence direct them to their respective code section</p>

<p>e.g.</p>

<pre><code> protected void onActivityResult(int requestCode, int resultCode,
        Intent intent) 
   {
    super.onActivityResult(requestCode, resultCode, intent);
    if(intent.???????){ //here i need some filter which could verify the calling intent.  
    if (resultCode == RESULT_OK) {
        Bundle extras = intent.getExtras();
        Bitmap bmp = (Bitmap) extras.get("data");
        imv = (ImageView) findViewById(R.id.iVCenterLogo);
        imv.setImageBitmap(bmp);
           }
             }
            else {
            //code to perform video stuff
             }     
}
</code></pre>

<p>Any help will be highly appreciated.</p>

<p>mrana...</p>
