here is how my application should work http://postimg.org/image/57byitwpz/ and here is the errors im getting http://postimg.org/image/ynyqerln9/ please donot give anything to add in my code instead correct my code. ive mistakenly written .xml instead of .class in the first image , please ignore that

here is my code **SplashScreen.java** public class SplashScreen extends Activity { if (!NetworkCheckClass.haveNetworkConnection(SplashAc tivity.this)) { Toast.makeText(SplashScreen.this, "No internet connection!",Toast.LENGTH_LONG).show(); Intent intent=new Intent(Settings.ACTION_WIRELESS_SETTINGS); startActivity(intent); } else { // your code if connection is available // this is my code of splash screen private static int SPLASH_TIME_OUT = 3000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); new Handler().postDelayed(new Runnable() { /* * Showing splash screen with a timer. This will be useful when you * want to show case your app logo / company */ @Override public void run() { // This method will be executed once the timer is over // Start your app main activity Intent i = new Intent(SplashScreen.this, MainActivity.class); startActivity(i); // close this activity finish(); } }, SPLASH_TIME_OUT); } }

Check Solution