S stanks Active Member Licensed User Longtime User May 21, 2014 #1 hi me again about widgets update interval is constant and i can't use smthg like Code: Copy ... dim interval as int = edtInt.text ... ConfigureHomeWidget("1", "rv", interval, "layout", 0) ... is there a way around this? startserviceat maybe? any example? i want to use that because i want to give user an option to choose update interval (>=30 min) thanks
hi me again about widgets update interval is constant and i can't use smthg like Code: Copy ... dim interval as int = edtInt.text ... ConfigureHomeWidget("1", "rv", interval, "layout", 0) ... is there a way around this? startserviceat maybe? any example? i want to use that because i want to give user an option to choose update interval (>=30 min) thanks
Erel B4X founder Staff member Licensed User Longtime User May 21, 2014 #2 The automatic update interval is defined in the XML file (the compiler creates this file during compilation). This means that this value cannot be changed. However you can disable the automatic updates and use StartServiceAt instead. This will allow you to change the interval. See this example: http://www.b4x.com/android/forum/th...ore-frequently-than-30-minutes.11329/#content Upvote 0
The automatic update interval is defined in the XML file (the compiler creates this file during compilation). This means that this value cannot be changed. However you can disable the automatic updates and use StartServiceAt instead. This will allow you to change the interval. See this example: http://www.b4x.com/android/forum/th...ore-frequently-than-30-minutes.11329/#content