public void onclick(){ Intent i = new Intent(MainActivity.this, Second.class); i.putExtra("numbers", array); startActivity(i); }
Bundle extras = getIntent().getExtras(); int[] arrayB = extras.getIntArray("numbers"); textView.setText( ":val:" +arrayB[1]); finish();
Intent intent = getIntent(); int[] arrayB = intent.getIntArrayExtra("numbers"); textView.setText( ":val:" +arrayB[1]); finish();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)