I am making a app which allow users to create and delete spaces. Example of spaces: office, meeting room, shop, etc. A user will set a space when he is in that location. Example if he is at office he will set the space to office.
The spaces are stored in a database. I have a home screen widget, and this widget needs to show the space that is set. Example needs to show office now.
I had some difficulty getting the widget to show these spaces. The problem is that the widget only updates after 30 min and when you do change it to update every second than you are faced with battery issues.
I only want the widget to update when a space is set.
Does anyone know how to deal with this problem or has some good advice. Or know of any good tutorials which actually work this way.
I am new to android and java.