一、onNewIntent()
在IntentActivity中重写下列方法:onCreate onStart onRestart onResume onPause onStop onDestroy onNewIntent
1、其他应用发Intent,执行下列方法:
onCreate
onStart
onResume
发Intent的方法:
1 |
Uri uri = Uri.parse("philn://blog.163.com"); |
2 |
Intent it = new Intent(Intent.ACTION_VIEW, uri); |
2、接收Intent