Code example for Intent

Methods: putExtrasetType

0
		byte[] data = intent.getByteArrayExtra("data");
		 
		if (data == null)
			return; 
		 
		Intent APGintent = new Intent(DECRYPT_AND_RETURN);
		APGintent.setType("text/plain");
		APGintent.putExtra(FileDecryptionActivity.EXTRA_DATA, data);
 
		try { 
			startActivityForResult(APGintent, DECRYPT_MESSAGE);
		} catch (ActivityNotFoundException e) {
			Log.e("MobileOrg", "Error: " + e.getMessage()
					+ " while launching APG intent"); 
		} 
	} 
     
	@Override 
	public void onActivityResult(int requestCode, int resultCode, Intent intent) {
		switch (requestCode) {
		case FileDecryptionActivity.DECRYPT_MESSAGE: