Skip to content

Instantly share code, notes, and snippets.

@fcaldarelli
Last active August 24, 2020 01:07
Show Gist options
  • Save fcaldarelli/cb084eed45792ff7f4825a71196416c3 to your computer and use it in GitHub Desktop.
Save fcaldarelli/cb084eed45792ff7f4825a71196416c3 to your computer and use it in GitHub Desktop.
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