I have to display number of times device is unlocked with a textView which is inside my Activity. I am storing the unlock frequency in Prefrences with BroadCast Reciever USER_ACTIVE onReciever().
I want to update the Activity textView everyTime i recieve the User_Active broadcast.
Any leads?
Simple three steps:
onStart()
and onStop()
USER_ACTIVE onReciever().
send a broadcast with the own action you have created(Ex: UPDATED_TEXT_PREFERENCES)Comment below for any doubts.