Android studio how to pass Array data to another activity's TextView?
<p>I am new to learning Array in android studio. Please show me some examples in details. I have write an example here and I want to display the Array data from MainActivity into second_page activity .</p>

<p>MainActivity.java</p>

<pre><code>public class MainActivity extends AppCompatActivity {

String my_array[]={"dog","cat","tiger"};

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

public void next_page(View view){  
    Intent intent = new Intent(this,second_page.class);
    intent.putExtra("my_array_next", my_array);
    startActivity(intent);
}
</code></pre>

<p>}</p>

<p>second_page.java</p>

<pre><code>public class second_page extends MainActivity {

TextView get_data;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.second_page);

    get_data=(TextView)findViewById(R.id.tv);
    Intent intent=getIntent();

    // coding here to display the array data 
    // sth like   abc.setText(display_array_data);

}
</code></pre>

<p>Please advice. Thank you!</p>