- you never call
show()
on your Toast - the launcher activity is
MainActivity
, but the Toast is insideSecondActivity
. Did you add the logic to launchSecondActivity
?
Edit:
From your Manifest I can read
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
So, when you execute your Application, the first activity launched will be MainActivity
. Inside it you need to launch SecondActivity. For instance inside MainActivity's onCreate you could have something like:
Intent intent = new Intent(this, SecondActivity.class);
startActivity(intent);