1.
Toast.makeText(getApplicationContext(), "test", Toast.LENGTH_LONG)
Toast.makeText(getApplicationContext(), "test", Toast.LENGTH_LONG)
.show().show().show().show().show().show().show().show().show().show().show()
一定别忘了show
2.
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
AndroidManifast.xml里第一个包含上面2个配置的activity为启动的项