I'm trying to send integer value from activity to a fragment to change text size value, Iv tried user bundle and custom constructor and didn't work. So how can I use shared preferences for this purpose?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
If you insist on shared preference use this code :
To save the data
To get your data:
For easier implementation, you can use
PowerPrefernce
https://github.com/AliEsaAssadi/Android-Power-Preference
Save data
Get Data
Hey have you tried something like this