當前位置:名人名言大全網 - 短信平臺 - android studio uri

android studio uri

Android StudioAndroid?URI?Uniform Resource Identifier?

URI?Android?URI

Android StudioIntentURI?Intent?IntentsetData()?URI

Intent intent = new Intent(Intent.ACTION_VIEW);

Uri uri = Uri.parse('');

intent.setData(uri);

startActivity(intent);

IntentsetData()URI''startActivity()?Intent?

setData()?URI?setDataAndType()?URI?MIME

Intent intent = new Intent(Intent.ACTION_VIEW);

Uri uri = Uri.parse('content://com.android.contacts/contacts/1');

intent.setDataAndType(uri, 'vnd.android.cursor.item/contact');

startActivity(intent);

IntentsetDataAndType()URI'content://com.android.contacts/contacts/1'MIME?'vnd.android.cursor.item/contact'startActivity()?Intent?

Android StudioURIIntentURIAndroidAndroidURI