I am trying to start a second activity but I am getting an error on the code.
import android.os.Bundle; import android.content.Intent; import android.app.Act
What your trying to pass in as a context is actually onActionItemClickListener() which will not work.
onActionItemClickListener()
Should use getBaseContext().
getBaseContext()
Intent intent = new Intent(getBaseContext(), SplashActivity.class);
Edit: Or you could do
Intent intent = new Intent(MainActivity.this, SplashActivity.class);