java - problem in moving data's from one page to the other in android -


I have three activities named as A, B and C, as in the activity, there is some data like name I

Date of B. in activity and activity. Now in Activity C, I want to display those names and date of birth. I tried to use the steps given in the following link

I am able to move from activity B to C, but data stored in Activity A is not visible

The following is the code that I have placed in Activity A

  myIntent = new intent (getBaseContext (), UserInformation.class); MyIntent.putExtra ("i1", name); MyIntent.putExtra ("i2", add); StartActivityForResult (myIntent, 0);   

The following is the activity that I have used in Activity B

  myIntent = new intent (getBaseContext (), UserManual.class); MyIntent.putExtra ("i3", regno); MyIntent.putExtra ("i4", dob); StartActivityForResult (myIntent, 0);   

The following is the activity that I have used in Activity C

  @Orride Create a public void form (bundle saved instenstate) {super.onCreate (savedInstanceState ); `Bundle Extras = Milentant (). GetExtras (); String i1 = extras.getString ("i1"); String i2 = extras.getString ("i2"); String i3 = extras .getString ("i3"); String I4 = extras.getString ("i4"); If ((i1! = Null) & amp; (i2! = Null)) {s = i1 + i2; Extras.Puncerequence ("S", S); } If ((i3! = Null) & amp; (i4! = Null)) {b = i3 + i4; Extra.Power Sequence ("B", B); }}   

I have separate text views for both.

Pls explain to me what is my error ...

OK, We think that the matter is being looked at: A-> B-> C Now Code: Activity B:

  Bundles Extra = getIntent (). GetExtras (); String i1 = extras.getString ("i1"); String i2 = extras.getString ("i2"); 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); Therefore, a passing value for activity activity B and then Activity B will pass all values ​​to activity C: :)   

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -