PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/app/src/main/java/com/example/stakh/geotask_1/MainActivity.java

https://bitbucket.org/Roman_Stakhovskiy/geo_task
Java | 26 lines | 20 code | 6 blank | 0 comment | 0 complexity | 32c30e3fffecdc3afa646ed6a9001d82 MD5 | raw file
 1package com.example.stakh.geotask_1;
 2
 3import android.app.Activity;
 4import android.content.Intent;
 5import android.os.Bundle;
 6import android.os.Handler;
 7
 8public class MainActivity extends Activity {
 9
10    @Override
11    protected void onCreate(Bundle savedInstanceState) {
12        super.onCreate( savedInstanceState );
13        setContentView( R.layout.splash );
14
15        new Handler().postDelayed( new Runnable() {
16            @Override
17            public void run() {
18                Intent intent = new Intent( MainActivity.this, TabsActivity.class );
19                startActivity( intent );
20                finish();
21            }
22        },2*1000 );
23
24    }
25
26}