// Get the intent that started this activity Intent intent = getIntent(); Uri data = intent.getData(); // Figure out what to do based on the intent type if (intent.getType().indexOf("image/") != -­‐1) { // Handle intents with image data ... } else if (intent.getType().equals("text/plain")) { // Handle intents with text … } Handle Intent from other App[3] // create a intent for result Intent result = new Intent("com.example.RESULT_ACTION", Uri.parse("content://result_uri"); // set the result setResult(Activity.RESULT_OK, result); // close and return to the caller ﬁnish(); Return a Result[3] Use customized app in Contacts [1] Android API Guide: Camera http://developer.android.com/guide/topics/media/camera.html