Intent intent = new Intent(MainActivity.this,MainActivity2.class); intent.putExtra("key",value); startActivity(intent); //////////////////// String string =getIntent().getStringExtra("key");
{"error":"invalid file name"}