The goal is to run and load a second activity in the background when the user is still in the first activity. The second activity is pretty heavy and it takes time to load; so I need to show the second activity after it's loaded and ready.
public void onButtonClick(View view){
Intent intent = new Intent(this, MainActivity.class);
intent.putExtra("user_input", userInput.getText().toString());
startActivity(intent);
}
Can I modify the above code in order to load the second activity in the background?