Home | History | Annotate | Download | only in com.example.android.directshare

Lines Matching refs:intent

20 import android.content.Intent;
59 // Resolve the share Intent.
77 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
96 * Resolves the passed {@link Intent}. This method can only resolve intents for sharing a plain
99 * @param intent The {@link Intent}.
100 * @return True if the {@code intent} is resolved properly.
102 private boolean resolveIntent(Intent intent) {
103 if (Intent.ACTION_SEND.equals(intent.getAction()) &&
104 "text/plain".equals(intent.getType())) {
105 mBody = intent.getStringExtra(Intent.EXTRA_TEXT);
106 mContactId = intent.getIntExtra(Contact.ID, Contact.INVALID_ID);
127 Intent intent = new Intent(this, SelectContactActivity.class);
128 intent.setAction(SelectContactActivity.ACTION_SELECT_CONTACT);
129 startActivityForResult(intent, REQUEST_SELECT_CONTACT);