Passing data between Activities Android | java -


consider 3 activities, a,b,c . want pass data activity activity c, activity c not launched activity , instead launched activity b, looking solution if can send integer value activity c activity , , activity c receives value whenever gets executed, can use intent.putextra() purpose? appreciated.

yes right . can use intent.putextra()

  1. you can pass data using intent.putextra() activity a activity b .
  2. then sote bundle in activity b
  3. then when launching activty c pass bundle intent
  4. catch data in activity c

Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -