android - How to keep informations in fragment after onBackPressed? -


i'm newbie in android , i'm working fragments.

my problem:

i have 2 fragments, "a" , "b", fragment "a" complex form, user can add , remove products, set customer information, payment method , more. fragment "b" show information user set in previous fragment.

but if user press button, i'm losing information set in previous fragment.

how can maintain informations on fragment a?

thanks.

you can save data using sharedpreferences

so once fragment load data sharedpreferences


Comments

Popular posts from this blog

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

apache - setting document root in antoher partition on ubuntu -

python - pip install -U PySide error -