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()
- you can pass data using
intent.putextra()activity a activity b . - then sote bundle in activity b
- then when launching activty c pass bundle intent
- catch data in activity c
Comments
Post a Comment