顯式intent使用:this
Intent intent = new Intent(TimeActivity.this,ListViewActivity.class); startActivity(intent);
隱式intent使用:spa
Intent intent = new Intent(com.example.activitytest.ACTION_START); startActivity(intent);
隱式intent須要action和category都匹配才能夠啓動。it
更多隱式intent的用法:io
能夠啓用其餘程序的活動。(下圖爲啓動網頁示例)class
相應manifest的配置:test