Last active
August 24, 2020 01:07
-
-
Save fcaldarelli/cb084eed45792ff7f4825a71196416c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tie; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
public class SplashActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.launch_screen); | |
Intent intent = new Intent(this, MainActivity.class); | |
// Pass along FCM messages/notifications etc. | |
Bundle extras = getIntent().getExtras(); | |
if (extras != null) { | |
intent.putExtras(extras); | |
} | |
startActivity(intent); | |
finish(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment