![]() The second problem was that the background service needs to run even if the phone is in an idle state or if the application gets killed. Take for example the repeating alarm, it turned out that after some time it no longer respect the 15 seconds but runs at an arbitrary amount of time decided by the android system. Although these requirement may not seem much to someone with some knowledge on Android development it turned out that this is not as trivial as initially thought! Upon googling about it you will find many different ways that you could run a service in the background every some seconds, like set a repeating alarm ! There are basically two problems that discovered with these ways, first is that they are not always exact. ![]() In the context of an experiment I am running, it was required to run a background service where it is supposed to run every 15 seconds and not to stop even if the device is idle. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |