The main activity includes some variables with set values. I created a sub-activity with the form which has to be filled with the data from main activity so I guess the data
Try this it will work:
activity1.class:
Intent i = new Intent(activity1.this,activity2.class);
Bundle b = new Bundle();
b.putString("name", "your value need to pass here");
i.putExtras(b);
startActivity(i);
activity2.class:
Bundle b = this.getIntent().getExtras();
String name = b.getString("name");
((TextView)findViewById(R.id.textView1)).setText(name);