In this video I will show you how to save global variables in android application. Using SharedPreferences, you can store variables with key-value pairs. Variable type can be string, int, float, etc,…
Remember to call commit() after setting values
After setting shared preferences values, you can get values everywhere in your android app.Ex: you can call getString, getInt,…if you set before with putString, putInt,…
SUBSCRIBE TO CHANNEL:

Twitter:
Facebook:

Nguồn: https://u-os.org

Xem thêm bài viết khác: https://u-os.org/cong-nghe

Author

5 Comments

  1. Julian Camilo Benavides Vanegas Reply

    thank you very much !!, it helped me a lot

Write A Comment