- problem in moving data's from one page to the other in android
- Intent myIntent = new Intent(getBaseContext(), UserInformation.class);
- myIntent.putExtra("i1", name);
- myIntent.putExtra("i2", addlress);
- startActivityForResult(myIntent, 0);
- Intent myIntent = new Intent(getBaseContext(), UserManual.class);
- myIntent.putExtra("i3", regno);
- myIntent.putExtra("i4", dob);
- startActivityForResult(myIntent, 0);
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);`
- Bundle extras = getIntent().getExtras();
- String i1 = extras.getString( "i1" );
- String i2 = extras.getString( "i2" );
- String i3 = extras.getString( "i3" );
- String i4 = extras.getString( "i4" );
- if((i1 != null) && (i2 != null))
- {
- s = i1 + i2;
- extras.putCharSequence("S", s);
- }
- if((i3 != null) && (i4 != null))
- {
- b = i3 + i4;
- extras.putCharSequence("B", b);
- }
- }
- Bundles extras = getIntent().getExtras();
- String i1 = extras.getString( "i1" );
- String i2 = extras.getString( "i2" );
- Intent myIntent = new Intent(getBaseContext(), UserManual.class);
- myIntent.putExtra("i1", i1);
- myIntent.putExtra("i2", i2);
- myIntent.putExtra("i3", regno);
- myIntent.putExtra("i4", dob);
- startActivityForResult(myIntent, 0);