53.7 Extracting Intent Data
Now that SecondActivity is being launched from MainActivity, the next step is to extract the String data value included in the intent and assign it to the TextView object in the SecondActivity user interface. This involves adding some code to the onCreate() method of SecondActivity in the SecondActivity.java source file in addition to adapting the activity to use view binding:
package com.ebookfrenzy.explicitintent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import com.ebookfrenzy.explicitintent.databinding.ActivitySecondBinding;
public class SecondActivity extends AppCompatActivity {
private ActivitySecondBinding binding;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState...