forked from pratyushmp/code_opensource_2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomeActivity.java
More file actions
26 lines (21 loc) · 770 Bytes
/
HomeActivity.java
File metadata and controls
26 lines (21 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.example.nitishkumar.currencyconverter;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class HomeActivity extends AppCompatActivity {
private static final int SPLASH_TIME_OUT = 900;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent homeIntemt = new Intent(HomeActivity.this, MainActivity.class);
startActivity(homeIntemt);
finish();
}
}, SPLASH_TIME_OUT);
}
}