Android Studio count how many days since application was last opened -


this personal project, i'm creating little basic journal other things. have no idea begin honest, when application launches want display in textview how many days has been since application last launched. please can help, basic working example best take can :)

thanks

in main activity oncreate, check sharedpreferences last used date, , display if present. save today's date.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -