// Handles send intents from multitude of Android applications private void encodeContentsFromShareIntent(Intent intent) throws WriterException { // Check if this is a plain text encoding, or contact if (intent.hasExtra(Intent.EXTRA_STREAM)) { encodeFromStreamExtra(intent); } else { encodeFromTextExtras(intent); } }