Android Studio: startActivity(i); shows error : I'm newbie to AndroidStudio(java) and I followed tutorial on YouTube.
But for me it shows an error in "startActivity(i);".
Error: startActivity (android.content.Intent) in Activity cannot be applied.
Here's code:

    public class LoadingScreen extends AppCompatActivity {

    private static int SplashInterval = 2000;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loading_screen);

        new Handler().postDelayed(new Runnable(){
            @Override
            public void run(){
                //TODO Auto-generated method stub
                Intent i = new Intent(LoadingScreen.this, MainActivity.class);
                startActivity(i);

                this.finish();
            }
            private void finish(){
                //TODO Auto-generated method stub
            }
        },SplashInterval);
    };
}