It's a bug? App killed and service still runing

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

I have an app that should save every 'n' minutes (GPS) position.

I found in my understanding :BangHead::
  • The app is killed and the service is still running (see lines in red), (PK = 98,138,350) there was NOT a "ExitApplication" and a FirstTime occurs
  • The app is running several times (see lines in green), (PK = 465,471,477) the app ASK for several exits

Any help is welcome

HTML:
pk   programa   fecha_hora   info   pk_envio   fecha_hora_envio
1   Main.Create.FirstTime   12-02-13 17:39   DataBase Opened   0   
2   Service.GPS   12-02-13 17:39   Service_Create   0   
3   Service.GPS   12-02-13 17:39   Service_Start   0   
4   Service.GPS   12-02-13 17:39   Stop previos GPS   0   
5   Service.GPS   12-02-13 17:39   Next Schedule : 2013-02-12 17:42:10   0   
6   Service.GPS   12-02-13 17:39   GPS Start   0   
7   Service.GPS   12-02-13 17:39   Start : 2,000   0   
8   Service.GPS   12-02-13 17:42   Service_Start   0   
9   Service.GPS   12-02-13 17:42   Stop previos GPS   0   
10   Service.GPS   12-02-13 17:42   Next Schedule : 2013-02-12 17:45:10   0   
11   Service.GPS   12-02-13 17:42   GPS Start   0   
12   Service.GPS   12-02-13 17:42   Start : 2,000   0   
13   Service.GPS   12-02-13 17:43   Begin of LocationChanged   0   
14   Service.GPS   12-02-13 17:43   MORE than one minute   0   
15   Service.GPS   12-02-13 17:43   Lat: 16.92877022610642 Long: -89.89096478553084   0   
16   Service.GPS   12-02-13 17:43   Store in Data Base   0   
17   Service.GPS   12-02-13 17:43   End of Store in Data Base   0   
18   Service.GPS   12-02-13 17:43   End of LocationChanged   0   
19   Service.GPS   12-02-13 17:43   Service Destroy   0   
20   Service.GPS   12-02-13 17:45   Service_Create   0   
21   Service.GPS   12-02-13 17:45   Service_Start   0   
22   Service.GPS   12-02-13 17:45   Stop previos GPS   0   
23   Service.GPS   12-02-13 17:45   Next Schedule : 2013-02-12 17:48:10   0   
24   Service.GPS   12-02-13 17:45   GPS Start   0   
25   Service.GPS   12-02-13 17:45   Start : 2,000   0   
26   Service.GPS   12-02-13 17:45   Begin of LocationChanged   0   
27   Service.GPS   12-02-13 17:45   MORE than one minute   0   
28   Service.GPS   12-02-13 17:45   Lat: 16.927894981334887 Long: -89.89087349541431   0   
29   Service.GPS   12-02-13 17:45   Store in Data Base   0   
30   Service.GPS   12-02-13 17:45   End of Store in Data Base   0   
31   Service.GPS   12-02-13 17:45   End of LocationChanged   0   
32   Service.GPS   12-02-13 17:45   Service Destroy   0   
33   Service.GPS   12-02-13 17:48   Service_Create   0   
34   Service.GPS   12-02-13 17:48   Service_Start   0   
35   Service.GPS   12-02-13 17:48   Stop previos GPS   0   
36   Service.GPS   12-02-13 17:48   Next Schedule : 2013-02-12 17:51:11   0   
37   Service.GPS   12-02-13 17:48   GPS Start   0   
38   Service.GPS   12-02-13 17:48   Start : 2,000   0   
39   Service.GPS   12-02-13 17:48   Begin of LocationChanged   0   
40   Service.GPS   12-02-13 17:48   MORE than one minute   0   
41   Service.GPS   12-02-13 17:48   Lat: 16.925168742790557 Long: -89.89133366739034   0   
42   Service.GPS   12-02-13 17:48   Store in Data Base   0   
43   Service.GPS   12-02-13 17:48   End of Store in Data Base   0   
44   Service.GPS   12-02-13 17:48   End of LocationChanged   0   
45   Service.GPS   12-02-13 17:48   Service Destroy   0   
46   Service.GPS   12-02-13 17:51   Service_Create   0   
47   Service.GPS   12-02-13 17:51   Service_Start   0   
48   Service.GPS   12-02-13 17:51   Stop previos GPS   0   
49   Service.GPS   12-02-13 17:51   Next Schedule : 2013-02-12 17:54:12   0   
50   Service.GPS   12-02-13 17:51   GPS Start   0   
51   Service.GPS   12-02-13 17:51   Start : 2,000   0   
52   Service.GPS   12-02-13 17:51   Begin of LocationChanged   0   
53   Service.GPS   12-02-13 17:51   MORE than one minute   0   
54   Service.GPS   12-02-13 17:51   Lat: 16.923674379402076 Long: -89.89058290290993   0   
55   Service.GPS   12-02-13 17:51   Store in Data Base   0   
56   Service.GPS   12-02-13 17:51   End of Store in Data Base   0   
57   Service.GPS   12-02-13 17:51   End of LocationChanged   0   
58   Service.GPS   12-02-13 17:51   Service Destroy   0   
59   Service.GPS   12-02-13 17:54   Service_Create   0   
60   Service.GPS   12-02-13 17:54   Service_Start   0   
61   Service.GPS   12-02-13 17:54   Stop previos GPS   0   
62   Service.GPS   12-02-13 17:54   Next Schedule : 2013-02-12 17:57:13   0   
63   Service.GPS   12-02-13 17:54   GPS Start   0   
64   Service.GPS   12-02-13 17:54   Start : 2,000   0   
65   Service.GPS   12-02-13 17:54   Begin of LocationChanged   0   
66   Service.GPS   12-02-13 17:54   MORE than one minute   0   
67   Service.GPS   12-02-13 17:54   Lat: 16.923090916269654 Long: -89.89081713653815   0   
68   Service.GPS   12-02-13 17:54   Store in Data Base   0   
69   Service.GPS   12-02-13 17:54   End of Store in Data Base   0   
70   Service.GPS   12-02-13 17:54   End of LocationChanged   0   
71   Service.GPS   12-02-13 17:54   Service Destroy   0   
72   Service.GPS   12-02-13 17:57   Service_Create   0   
73   Service.GPS   12-02-13 17:57   Service_Start   0   
74   Service.GPS   12-02-13 17:57   Stop previos GPS   0   
75   Service.GPS   12-02-13 17:57   Next Schedule : 2013-02-12 18:00:14   0   
76   Service.GPS   12-02-13 17:57   GPS Start   0   
77   Service.GPS   12-02-13 17:57   Start : 2,000   0   
78   Service.GPS   12-02-13 17:57   Begin of LocationChanged   0   
79   Service.GPS   12-02-13 17:57   MORE than one minute   0   
80   Service.GPS   12-02-13 17:57   Lat: 16.923663837213006 Long: -89.89048136265552   0   
81   Service.GPS   12-02-13 17:57   Store in Data Base   0   
82   Service.GPS   12-02-13 17:57   End of Store in Data Base   0   
83   Service.GPS   12-02-13 17:57   End of LocationChanged   0   
84   Service.GPS   12-02-13 17:57   Service Destroy   0   
85   Service.GPS   12-02-13 18:00   Service_Create   0   
86   Service.GPS   12-02-13 18:00   Service_Start   0   
87   Service.GPS   12-02-13 18:00   Stop previos GPS   0   
88   Service.GPS   12-02-13 18:00   Next Schedule : 2013-02-12 18:03:15   0   
89   Service.GPS   12-02-13 18:00   GPS Start   0   
90   Service.GPS   12-02-13 18:00   Start : 2,000   0   
91   Service.GPS   12-02-13 18:02   Begin of LocationChanged   0   
92   Service.GPS   12-02-13 18:02   MORE than one minute   0   
93   Service.GPS   12-02-13 18:02   Lat: 16.92408696137989 Long: -89.892179613233   0   
94   Service.GPS   12-02-13 18:02   Store in Data Base   0   
95   Service.GPS   12-02-13 18:02   End of Store in Data Base   0   
96   Service.GPS   12-02-13 18:02   End of LocationChanged   0   
97   Service.GPS   12-02-13 18:02   Service Destroy   0   
[COLOR="Red"]98   Main.Create.FirstTime   12-02-13 18:08   DataBase Opened   0   [/COLOR]
99   Service.GPS   12-02-13 18:08   Service_Create   0   
100   Service.GPS   12-02-13 18:08   Service_Start   0   
101   Service.GPS   12-02-13 18:08   Stop previos GPS   0   
102   Service.GPS   12-02-13 18:08   Next Schedule : 2013-02-12 18:11:51   0   
103   Service.GPS   12-02-13 18:08   GPS Start   0   
104   Service.GPS   12-02-13 18:08   Start : 2,000   0   
105   Service.GPS   12-02-13 18:09   Begin of LocationChanged   0   
106   Service.GPS   12-02-13 18:09   MORE than one minute   0   
107   Service.GPS   12-02-13 18:09   Lat: 16.9236282099751 Long: -89.89066660299333   0   
108   Service.GPS   12-02-13 18:09   Store in Data Base   0   
109   Service.GPS   12-02-13 18:09   End of Store in Data Base   0   
110   Service.GPS   12-02-13 18:09   End of LocationChanged   0   
111   Service.GPS   12-02-13 18:09   Service Destroy   0   
112   Service.GPS   12-02-13 18:11   Service_Create   0   
113   Service.GPS   12-02-13 18:11   Service_Start   0   
114   Service.GPS   12-02-13 18:11   Stop previos GPS   0   
115   Service.GPS   12-02-13 18:11   Next Schedule : 2013-02-12 18:14:52   0   
116   Service.GPS   12-02-13 18:11   GPS Start   0   
117   Service.GPS   12-02-13 18:11   Start : 2,000   0   
118   Service.GPS   12-02-13 18:11   Begin of LocationChanged   0   
119   Service.GPS   12-02-13 18:11   MORE than one minute   0   
120   Service.GPS   12-02-13 18:11   Lat: 16.924527041348448 Long: -89.89143535987031   0   
121   Service.GPS   12-02-13 18:11   Store in Data Base   0   
122   Service.GPS   12-02-13 18:11   End of Store in Data Base   0   
123   Service.GPS   12-02-13 18:11   End of LocationChanged   0   
124   Service.GPS   12-02-13 18:11   Service Destroy   0   
125   Service.GPS   12-02-13 18:14   Service_Create   0   
126   Service.GPS   12-02-13 18:14   Service_Start   0   
127   Service.GPS   12-02-13 18:14   Stop previos GPS   0   
128   Service.GPS   12-02-13 18:14   Next Schedule : 2013-02-12 18:17:53   0   
129   Service.GPS   12-02-13 18:14   GPS Start   0   
130   Service.GPS   12-02-13 18:14   Start : 2,000   0   
131   Service.GPS   12-02-13 18:14   Begin of LocationChanged   0   
132   Service.GPS   12-02-13 18:14   MORE than one minute   0   
133   Service.GPS   12-02-13 18:14   Lat: 16.927108599982798 Long: -89.89103204121452   0   
134   Service.GPS   12-02-13 18:14   Store in Data Base   0   
135   Service.GPS   12-02-13 18:14   End of Store in Data Base   0   
136   Service.GPS   12-02-13 18:14   End of LocationChanged   0   
137   Service.GPS   12-02-13 18:15   Service Destroy   0   
[COLOR="red"]138   Main.Create.FirstTime   12-02-13 18:20   DataBase Opened   0   [/COLOR]
139   Service.GPS   12-02-13 18:20   Service_Create   0   
140   Service.GPS   12-02-13 18:20   Service_Start   0   
141   Service.GPS   12-02-13 18:20   Stop previos GPS   0   
142   Service.GPS   12-02-13 18:20   Next Schedule : 2013-02-12 18:23:21   0   
143   Service.GPS   12-02-13 18:20   GPS Start   0   
144   Service.GPS   12-02-13 18:20   Start : 2,000   0   
145   Service.GPS   12-02-13 18:20   Begin of LocationChanged   0   
146   Service.GPS   12-02-13 18:20   MORE than one minute   0   
147   Service.GPS   12-02-13 18:20   Lat: 16.928785400793362 Long: -89.89173185564839   0   
148   Service.GPS   12-02-13 18:20   Store in Data Base   0   
149   Service.GPS   12-02-13 18:20   End of Store in Data Base   0   
150   Service.GPS   12-02-13 18:20   End of LocationChanged   0   
151   Service.GPS   12-02-13 18:20   Service Destroy   0   
152   Service.GPS   12-02-13 18:23   Service_Create   0   
153   Service.GPS   12-02-13 18:23   Service_Start   0   
154   Service.GPS   12-02-13 18:23   Stop previos GPS   0   
155   Service.GPS   12-02-13 18:23   Next Schedule : 2013-02-12 18:26:22   0   
156   Service.GPS   12-02-13 18:23   GPS Start   0   
157   Service.GPS   12-02-13 18:23   Start : 2,000   0   
158   Service.GPS   12-02-13 18:26   Service_Start   0   
159   Service.GPS   12-02-13 18:26   Stop previos GPS   0   
160   Service.GPS   12-02-13 18:26   Next Schedule : 2013-02-12 18:29:22   0   
161   Service.GPS   12-02-13 18:26   GPS Start   0   
162   Service.GPS   12-02-13 18:26   Start : 2,000   0   
163   Service.GPS   12-02-13 18:26   Begin of LocationChanged   0   
164   Service.GPS   12-02-13 18:26   MORE than one minute   0   
165   Service.GPS   12-02-13 18:26   Lat: 16.92911115756172 Long: -89.89274364046365   0   
166   Service.GPS   12-02-13 18:26   Store in Data Base   0   
167   Service.GPS   12-02-13 18:26   End of Store in Data Base   0   
168   Service.GPS   12-02-13 18:26   End of LocationChanged   0   
169   Service.GPS   12-02-13 18:26   Service Destroy   0   
170   Service.GPS   12-02-13 18:29   Service_Create   0   
171   Service.GPS   12-02-13 18:29   Service_Start   0   
172   Service.GPS   12-02-13 18:29   Stop previos GPS   0   
173   Service.GPS   12-02-13 18:29   Next Schedule : 2013-02-12 18:32:22   0   
174   Service.GPS   12-02-13 18:29   GPS Start   0   
175   Service.GPS   12-02-13 18:29   Start : 2,000   0   
176   Service.GPS   12-02-13 18:29   Begin of LocationChanged   0   
177   Service.GPS   12-02-13 18:29   MORE than one minute   0   
178   Service.GPS   12-02-13 18:29   Lat: 16.929300429527057 Long: -89.89228345487072   0   
179   Service.GPS   12-02-13 18:29   Store in Data Base   0   
180   Service.GPS   12-02-13 18:29   End of Store in Data Base   0   
181   Service.GPS   12-02-13 18:29   End of LocationChanged   0   
182   Service.GPS   12-02-13 18:29   Service Destroy   0   
183   Service.GPS   12-02-13 18:32   Service_Create   0   
184   Service.GPS   12-02-13 18:32   Service_Start   0   
185   Service.GPS   12-02-13 18:32   Stop previos GPS   0   
186   Service.GPS   12-02-13 18:32   Next Schedule : 2013-02-12 18:35:23   0   
187   Service.GPS   12-02-13 18:32   GPS Start   0   
188   Service.GPS   12-02-13 18:32   Start : 2,000   0   
189   Service.GPS   12-02-13 18:33   Begin of LocationChanged   0   
190   Service.GPS   12-02-13 18:33   MORE than one minute   0   
191   Service.GPS   12-02-13 18:33   Lat: 16.92908253993209 Long: -89.89259714174949   0   
192   Service.GPS   12-02-13 18:33   Store in Data Base   0   
193   Service.GPS   12-02-13 18:33   End of Store in Data Base   0   
194   Service.GPS   12-02-13 18:33   End of LocationChanged   0   
195   Service.GPS   12-02-13 18:33   Service Destroy   0   
196   Service.GPS   12-02-13 18:35   Service_Create   0   
197   Service.GPS   12-02-13 18:35   Service_Start   0   
198   Service.GPS   12-02-13 18:35   Stop previos GPS   0   
199   Service.GPS   12-02-13 18:35   Next Schedule : 2013-02-12 18:38:24   0   
200   Service.GPS   12-02-13 18:35   GPS Start   0   
201   Service.GPS   12-02-13 18:35   Start : 2,000   0   
202   Service.GPS   12-02-13 18:36   Begin of LocationChanged   0   
203   Service.GPS   12-02-13 18:36   MORE than one minute   0   
204   Service.GPS   12-02-13 18:36   Lat: 16.929579754518905 Long: -89.89212722174898   0   
205   Service.GPS   12-02-13 18:36   Store in Data Base   0   
206   Service.GPS   12-02-13 18:36   End of Store in Data Base   0   
207   Service.GPS   12-02-13 18:36   End of LocationChanged   0   
208   Service.GPS   12-02-13 18:36   Service Destroy   0   
209   Service.GPS   12-02-13 18:38   Service_Create   0   
210   Service.GPS   12-02-13 18:38   Service_Start   0   
211   Service.GPS   12-02-13 18:38   Stop previos GPS   0   
212   Service.GPS   12-02-13 18:38   Next Schedule : 2013-02-12 18:41:25   0   
213   Service.GPS   12-02-13 18:38   GPS Start   0   
214   Service.GPS   12-02-13 18:38   Start : 2,000   0   
215   Service.GPS   12-02-13 18:39   Begin of LocationChanged   0   
216   Service.GPS   12-02-13 18:39   MORE than one minute   0   
217   Service.GPS   12-02-13 18:39   Lat: 16.929031815537574 Long: -89.89181477955468   0   
218   Service.GPS   12-02-13 18:39   Store in Data Base   0   
219   Service.GPS   12-02-13 18:39   End of Store in Data Base   0   
220   Service.GPS   12-02-13 18:39   End of LocationChanged   0   
221   Service.GPS   12-02-13 18:39   Service Destroy   0   
222   Service.GPS   12-02-13 18:41   Service_Create   0   
223   Service.GPS   12-02-13 18:41   Service_Start   0   
224   Service.GPS   12-02-13 18:41   Stop previos GPS   0   
225   Service.GPS   12-02-13 18:41   Next Schedule : 2013-02-12 18:44:26   0   
226   Service.GPS   12-02-13 18:41   GPS Start   0   
227   Service.GPS   12-02-13 18:41   Start : 2,000   0   
228   Service.GPS   12-02-13 18:42   Begin of LocationChanged   0   
229   Service.GPS   12-02-13 18:42   MORE than one minute   0   
230   Service.GPS   12-02-13 18:42   Lat: 16.9292513249567 Long: -89.89153235157886   0   
231   Service.GPS   12-02-13 18:42   Store in Data Base   0   
232   Service.GPS   12-02-13 18:42   End of Store in Data Base   0   
233   Service.GPS   12-02-13 18:42   End of LocationChanged   0   
234   Service.GPS   12-02-13 18:42   Service Destroy   0   
235   Service.GPS   12-02-13 18:44   Service_Create   0   
236   Service.GPS   12-02-13 18:44   Service_Start   0   
237   Service.GPS   12-02-13 18:44   Stop previos GPS   0   
238   Service.GPS   12-02-13 18:44   Next Schedule : 2013-02-12 18:47:27   0   
239   Service.GPS   12-02-13 18:44   GPS Start   0   
240   Service.GPS   12-02-13 18:44   Start : 2,000   0   
241   Service.GPS   12-02-13 18:47   Service_Start   0   
242   Service.GPS   12-02-13 18:47   Stop previos GPS   0   
243   Service.GPS   12-02-13 18:47   Next Schedule : 2013-02-12 18:50:27   0   
244   Service.GPS   12-02-13 18:47   GPS Start   0   
245   Service.GPS   12-02-13 18:47   Start : 2,000   0   
246   Service.GPS   12-02-13 18:50   Service_Start   0   
247   Service.GPS   12-02-13 18:50   Stop previos GPS   0   
248   Service.GPS   12-02-13 18:50   Next Schedule : 2013-02-12 18:53:27   0   
249   Service.GPS   12-02-13 18:50   GPS Start   0   
250   Service.GPS   12-02-13 18:50   Start : 2,000   0   
251   Service.GPS   12-02-13 18:50   Begin of LocationChanged   0   
252   Service.GPS   12-02-13 18:50   MORE than one minute   0   
253   Service.GPS   12-02-13 18:50   Lat: 16.92921464899981 Long: -89.89240257957483   0   
254   Service.GPS   12-02-13 18:50   Store in Data Base   0   
255   Service.GPS   12-02-13 18:50   End of Store in Data Base   0   
256   Service.GPS   12-02-13 18:50   End of LocationChanged   0   
257   Service.GPS   12-02-13 18:50   Service Destroy   0   
258   Service.GPS   12-02-13 18:53   Service_Create   0   
259   Service.GPS   12-02-13 18:53   Service_Start   0   
260   Service.GPS   12-02-13 18:53   Stop previos GPS   0   
261   Service.GPS   12-02-13 18:53   Next Schedule : 2013-02-12 18:56:28   0   
262   Service.GPS   12-02-13 18:53   GPS Start   0   
263   Service.GPS   12-02-13 18:53   Start : 2,000   0   
264   Service.GPS   12-02-13 18:54   Begin of LocationChanged   0   
265   Service.GPS   12-02-13 18:54   MORE than one minute   0   
266   Service.GPS   12-02-13 18:54   Lat: 16.929092255720516 Long: -89.89270051085167   0   
267   Service.GPS   12-02-13 18:54   Store in Data Base   0   
268   Service.GPS   12-02-13 18:54   End of Store in Data Base   0   
269   Service.GPS   12-02-13 18:54   End of LocationChanged   0   
270   Service.GPS   12-02-13 18:54   Service Destroy   0   
271   Service.GPS   12-02-13 18:56   Service_Create   0   
272   Service.GPS   12-02-13 18:56   Service_Start   0   
273   Service.GPS   12-02-13 18:56   Stop previos GPS   0   
274   Service.GPS   12-02-13 18:56   Next Schedule : 2013-02-12 18:59:29   0   
275   Service.GPS   12-02-13 18:56   GPS Start   0   
276   Service.GPS   12-02-13 18:56   Start : 2,000   0   
277   Service.GPS   12-02-13 18:56   Begin of LocationChanged   0   
278   Service.GPS   12-02-13 18:56   MORE than one minute   0   
279   Service.GPS   12-02-13 18:56   Lat: 16.92925070789851 Long: -89.89288110033961   0   
280   Service.GPS   12-02-13 18:56   Store in Data Base   0   
281   Service.GPS   12-02-13 18:56   End of Store in Data Base   0   
282   Service.GPS   12-02-13 18:56   End of LocationChanged   0   
283   Service.GPS   12-02-13 18:56   Service Destroy   0   
284   Service.GPS   12-02-13 18:59   Service_Create   0   
285   Service.GPS   12-02-13 18:59   Service_Start   0   
286   Service.GPS   12-02-13 18:59   Stop previos GPS   0   
287   Service.GPS   12-02-13 18:59   Next Schedule : 2013-02-12 19:02:30   0   
288   Service.GPS   12-02-13 18:59   GPS Start   0   
289   Service.GPS   12-02-13 18:59   Start : 2,000   0   
290   Service.GPS   12-02-13 19:00   Begin of LocationChanged   0   
291   Service.GPS   12-02-13 19:00   MORE than one minute   0   
292   Service.GPS   12-02-13 19:00   Lat: 16.930727296898528 Long: -89.89301080196324   0   
293   Service.GPS   12-02-13 19:00   Store in Data Base   0   
294   Service.GPS   12-02-13 19:00   End of Store in Data Base   0   
295   Service.GPS   12-02-13 19:00   End of LocationChanged   0   
296   Service.GPS   12-02-13 19:00   Service Destroy   0   
297   Service.GPS   12-02-13 19:02   Service_Create   0   
298   Service.GPS   12-02-13 19:02   Service_Start   0   
299   Service.GPS   12-02-13 19:02   Stop previos GPS   0   
300   Service.GPS   12-02-13 19:02   Next Schedule : 2013-02-12 19:05:31   0   
301   Service.GPS   12-02-13 19:02   GPS Start   0   
302   Service.GPS   12-02-13 19:02   Start : 2,000   0   
303   Service.GPS   12-02-13 19:02   Begin of LocationChanged   0   
304   Service.GPS   12-02-13 19:02   MORE than one minute   0   
305   Service.GPS   12-02-13 19:02   Lat: 16.929677192184847 Long: -89.89185022714507   0   
306   Service.GPS   12-02-13 19:02   Store in Data Base   0   
307   Service.GPS   12-02-13 19:02   End of Store in Data Base   0   
308   Service.GPS   12-02-13 19:02   End of LocationChanged   0   
309   Service.GPS   12-02-13 19:02   Service Destroy   0   
310   Service.GPS   12-02-13 19:05   Service_Create   0   
311   Service.GPS   12-02-13 19:05   Service_Start   0   
312   Service.GPS   12-02-13 19:05   Stop previos GPS   0   
313   Service.GPS   12-02-13 19:05   Next Schedule : 2013-02-12 19:08:32   0   
314   Service.GPS   12-02-13 19:05   GPS Start   0   
315   Service.GPS   12-02-13 19:05   Start : 2,000   0   
316   Service.GPS   12-02-13 19:05   Begin of LocationChanged   0   
317   Service.GPS   12-02-13 19:05   MORE than one minute   0   
318   Service.GPS   12-02-13 19:05   Lat: 16.929234946815203 Long: -89.89233915370193   0   
319   Service.GPS   12-02-13 19:05   Store in Data Base   0   
320   Service.GPS   12-02-13 19:05   End of Store in Data Base   0   
321   Service.GPS   12-02-13 19:05   End of LocationChanged   0   
322   Service.GPS   12-02-13 19:05   Service Destroy   0   
323   Service.GPS   12-02-13 19:08   Service_Create   0   
324   Service.GPS   12-02-13 19:08   Service_Start   0   
325   Service.GPS   12-02-13 19:08   Stop previos GPS   0   
326   Service.GPS   12-02-13 19:08   Next Schedule : 2013-02-12 19:11:33   0   
327   Service.GPS   12-02-13 19:08   GPS Start   0   
328   Service.GPS   12-02-13 19:08   Start : 2,000   0   
329   Service.GPS   12-02-13 19:08   Begin of LocationChanged   0   
330   Service.GPS   12-02-13 19:08   MORE than one minute   0   
331   Service.GPS   12-02-13 19:08   Lat: 16.929126745151894 Long: -89.89209482469532   0   
332   Service.GPS   12-02-13 19:08   Store in Data Base   0   
333   Service.GPS   12-02-13 19:08   End of Store in Data Base   0   
334   Service.GPS   12-02-13 19:08   End of LocationChanged   0   
335   Service.GPS   12-02-13 19:08   Service Destroy   0   
336   Service.GPS   12-02-13 19:11   Service_Create   0   
337   Service.GPS   12-02-13 19:11   Service_Start   0   
338   Service.GPS   12-02-13 19:11   Stop previos GPS   0   
339   Service.GPS   12-02-13 19:11   Next Schedule : 2013-02-12 19:14:34   0   
340   Service.GPS   12-02-13 19:11   GPS Start   0   
341   Service.GPS   12-02-13 19:11   Start : 2,000   0   
342   Service.GPS   12-02-13 19:12   Begin of LocationChanged   0   
343   Service.GPS   12-02-13 19:12   MORE than one minute   0   
344   Service.GPS   12-02-13 19:12   Lat: 16.930038627954744 Long: -89.89300510725613   0   
345   Service.GPS   12-02-13 19:12   Store in Data Base   0   
346   Service.GPS   12-02-13 19:12   End of Store in Data Base   0   
347   Service.GPS   12-02-13 19:12   End of LocationChanged   0   
348   Service.GPS   12-02-13 19:12   Service Destroy   0   
[COLOR="red"]349   Main.Create.FirstTime   12-02-13 19:12   DataBase Opened   0   [/COLOR]
350   Service.GPS   12-02-13 19:12   Service_Create   0   
351   Service.GPS   12-02-13 19:12   Service_Start   0   
352   Service.GPS   12-02-13 19:12   Stop previos GPS   0   
353   Service.GPS   12-02-13 19:12   Next Schedule : 2013-02-12 19:15:27   0   
354   Service.GPS   12-02-13 19:12   GPS Start   0   
355   Service.GPS   12-02-13 19:12   Start : 2,000   0   
356   Service.GPS   12-02-13 19:12   Begin of LocationChanged   0   
357   Service.GPS   12-02-13 19:12   MORE than one minute   0   
358   Service.GPS   12-02-13 19:12   Lat: 16.929143816020712 Long: -89.89250079345099   0   
359   Service.GPS   12-02-13 19:12   Store in Data Base   0   
360   Service.GPS   12-02-13 19:12   End of Store in Data Base   0   
361   Service.GPS   12-02-13 19:12   End of LocationChanged   0   
362   Service.GPS   12-02-13 19:12   Service Destroy   0   
363   Service.GPS   12-02-13 19:15   Service_Create   0   
364   Service.GPS   12-02-13 19:15   Service_Start   0   
365   Service.GPS   12-02-13 19:15   Stop previos GPS   0   
366   Service.GPS   12-02-13 19:15   Next Schedule : 2013-02-12 19:18:28   0   
367   Service.GPS   12-02-13 19:15   GPS Start   0   
368   Service.GPS   12-02-13 19:15   Start : 2,000   0   
369   Service.GPS   12-02-13 19:15   Begin of LocationChanged   0   
370   Service.GPS   12-02-13 19:15   MORE than one minute   0   
371   Service.GPS   12-02-13 19:15   Lat: 16.92933198497662 Long: -89.89251191380532   0   
372   Service.GPS   12-02-13 19:15   Store in Data Base   0   
373   Service.GPS   12-02-13 19:15   End of Store in Data Base   0   
374   Service.GPS   12-02-13 19:15   End of LocationChanged   0   
375   Service.GPS   12-02-13 19:15   Service Destroy   0   
376   Service.GPS   12-02-13 19:18   Service_Create   0   
377   Service.GPS   12-02-13 19:18   Service_Start   0   
378   Service.GPS   12-02-13 19:18   Stop previos GPS   0   
379   Service.GPS   12-02-13 19:18   Next Schedule : 2013-02-12 19:21:29   0   
380   Service.GPS   12-02-13 19:18   GPS Start   0   
381   Service.GPS   12-02-13 19:18   Start : 2,000   0   
382   Service.GPS   12-02-13 19:19   Begin of LocationChanged   0   
383   Service.GPS   12-02-13 19:19   MORE than one minute   0   
384   Service.GPS   12-02-13 19:19   Lat: 16.93072451328831 Long: -89.89322464360983   0   
385   Service.GPS   12-02-13 19:19   Store in Data Base   0   
386   Service.GPS   12-02-13 19:19   End of Store in Data Base   0   
387   Service.GPS   12-02-13 19:19   End of LocationChanged   0   
388   Service.GPS   12-02-13 19:19   Service Destroy   0   
389   Service.GPS   12-02-13 19:21   Service_Create   0   
390   Service.GPS   12-02-13 19:21   Service_Start   0   
391   Service.GPS   12-02-13 19:21   Stop previos GPS   0   
392   Service.GPS   12-02-13 19:21   Next Schedule : 2013-02-12 19:24:30   0   
393   Service.GPS   12-02-13 19:21   GPS Start   0   
394   Service.GPS   12-02-13 19:21   Start : 2,000   0   
395   Service.GPS   12-02-13 19:24   Service_Start   0   
396   Service.GPS   12-02-13 19:24   Stop previos GPS   0   
397   Service.GPS   12-02-13 19:24   Next Schedule : 2013-02-12 19:27:30   0   
398   Service.GPS   12-02-13 19:24   GPS Start   0   
399   Service.GPS   12-02-13 19:24   Start : 2,000   0   
400   Service.GPS   12-02-13 19:26   Begin of LocationChanged   0   
401   Service.GPS   12-02-13 19:26   MORE than one minute   0   
402   Service.GPS   12-02-13 19:26   Lat: 16.929819103504567 Long: -89.89304436727272   0   
403   Service.GPS   12-02-13 19:26   Store in Data Base   0   
404   Service.GPS   12-02-13 19:26   End of Store in Data Base   0   
405   Service.GPS   12-02-13 19:26   End of LocationChanged   0   
406   Service.GPS   12-02-13 19:26   Service Destroy   0   
407   Service.GPS   12-02-13 19:27   Service_Create   0   
408   Service.GPS   12-02-13 19:27   Service_Start   0   
409   Service.GPS   12-02-13 19:27   Stop previos GPS   0   
410   Service.GPS   12-02-13 19:27   Next Schedule : 2013-02-12 19:30:30   0   
411   Service.GPS   12-02-13 19:27   GPS Start   0   
412   Service.GPS   12-02-13 19:27   Start : 2,000   0   
413   Service.GPS   12-02-13 19:29   Begin of LocationChanged   0   
414   Service.GPS   12-02-13 19:29   MORE than one minute   0   
415   Service.GPS   12-02-13 19:29   Lat: 16.929208137547775 Long: -89.8924619338742   0   
416   Service.GPS   12-02-13 19:29   Store in Data Base   0   
417   Service.GPS   12-02-13 19:29   End of Store in Data Base   0   
418   Service.GPS   12-02-13 19:29   End of LocationChanged   0   
419   Service.GPS   12-02-13 19:29   Service Destroy   0   
420   Service.GPS   12-02-13 19:30   Service_Create   0   
421   Service.GPS   12-02-13 19:30   Service_Start   0   
422   Service.GPS   12-02-13 19:30   Stop previos GPS   0   
423   Service.GPS   12-02-13 19:30   Next Schedule : 2013-02-12 19:33:30   0   
424   Service.GPS   12-02-13 19:30   GPS Start   0   
425   Service.GPS   12-02-13 19:30   Start : 2,000   0   
426   Service.GPS   12-02-13 19:31   Begin of LocationChanged   0   
427   Service.GPS   12-02-13 19:31   MORE than one minute   0   
428   Service.GPS   12-02-13 19:31   Lat: 16.92934899125238 Long: -89.89248160942638   0   
429   Service.GPS   12-02-13 19:31   Store in Data Base   0   
430   Service.GPS   12-02-13 19:31   End of Store in Data Base   0   
431   Service.GPS   12-02-13 19:31   End of LocationChanged   0   
432   Service.GPS   12-02-13 19:31   Service Destroy   0   
433   Service.GPS   12-02-13 19:33   Service_Create   0   
434   Service.GPS   12-02-13 19:33   Service_Start   0   
435   Service.GPS   12-02-13 19:33   Stop previos GPS   0   
436   Service.GPS   12-02-13 19:33   Next Schedule : 2013-02-12 19:36:31   0   
437   Service.GPS   12-02-13 19:33   GPS Start   0   
438   Service.GPS   12-02-13 19:33   Start : 2,000   0   
439   Service.GPS   12-02-13 19:33   Begin of LocationChanged   0   
440   Service.GPS   12-02-13 19:33   MORE than one minute   0   
441   Service.GPS   12-02-13 19:33   Lat: 16.929475194580643 Long: -89.89216753211734   0   
442   Service.GPS   12-02-13 19:33   Store in Data Base   0   
443   Service.GPS   12-02-13 19:33   End of Store in Data Base   0   
444   Service.GPS   12-02-13 19:33   End of LocationChanged   0   
445   Service.GPS   12-02-13 19:33   Service Destroy   0   
446   Service.GPS   12-02-13 19:36   Service_Create   0   
447   Service.GPS   12-02-13 19:36   Service_Start   0   
448   Service.GPS   12-02-13 19:36   Stop previos GPS   0   
449   Service.GPS   12-02-13 19:36   Next Schedule : 2013-02-12 19:39:32   0   
450   Service.GPS   12-02-13 19:36   GPS Start   0   
451   Service.GPS   12-02-13 19:36   Start : 2,000   0   
452   Service.GPS   12-02-13 19:36   Begin of LocationChanged   0   
453   Service.GPS   12-02-13 19:36   MORE than one minute   0   
454   Service.GPS   12-02-13 19:36   Lat: 16.92949356953468 Long: -89.89207126253537   0   
455   Service.GPS   12-02-13 19:36   Store in Data Base   0   
456   Service.GPS   12-02-13 19:36   End of Store in Data Base   0   
457   Service.GPS   12-02-13 19:36   End of LocationChanged   0   
458   Service.GPS   12-02-13 19:36   Service Destroy   0   
459   Main.Exit   12-02-13 19:37   Trying to exit   0   
460   Main.Exit   12-02-13 19:37   User responde YES to exit   0   
461   Main.Exit   12-02-13 19:37   Current Time :19   0   
462   Main.Exit   12-02-13 19:37   SysGPSBeginHour :8   0   
463   Main.Exit   12-02-13 19:37   SysGPSEndHour :22   0   
464   Main.Exit   12-02-13 19:37   Keep Service running   0   
[COLOR="SeaGreen"]465   Main.Exit   12-02-13 19:37   Trying to exit   0   [/COLOR]
466   Main.Exit   12-02-13 19:37   User responde YES to exit   0   
467   Main.Exit   12-02-13 19:37   Current Time :19   0   
468   Main.Exit   12-02-13 19:37   SysGPSBeginHour :8   0   
469   Main.Exit   12-02-13 19:37   SysGPSEndHour :22   0   
470   Main.Exit   12-02-13 19:37   Keep Service running   0   
[COLOR="rgb(46, 139, 87)"]471   Main.Exit   12-02-13 19:37   Trying to exit   0   [/COLOR]
472   Main.Exit   12-02-13 19:37   User responde YES to exit   0   
473   Main.Exit   12-02-13 19:37   Current Time :19   0   
474   Main.Exit   12-02-13 19:37   SysGPSBeginHour :8   0   
475   Main.Exit   12-02-13 19:37   SysGPSEndHour :22   0   
476   Main.Exit   12-02-13 19:37   Keep Service running   0   
[COLOR="rgb(46, 139, 87)"]477   Main.Exit   12-02-13 19:38   Trying to exit   0   [/COLOR]
478   Main.Exit   12-02-13 19:38   User responde YES to exit   0   
479   Main.Exit   12-02-13 19:38   Current Time :19   0   
480   Main.Exit   12-02-13 19:38   SysGPSBeginHour :8   0   
481   Main.Exit   12-02-13 19:38   SysGPSEndHour :22   0   
482   Main.Exit   12-02-13 19:38   Keep Service running   0   
483   Service.GPS   12-02-13 19:39   Service_Create   0   
484   Service.GPS   12-02-13 19:39   Service_Start   0   
485   Service.GPS   12-02-13 19:39   Stop previos GPS   0   
486   Service.GPS   12-02-13 19:39   Next Schedule : 2013-02-12 19:42:33   0   
487   Service.GPS   12-02-13 19:39   GPS Start   0   
488   Service.GPS   12-02-13 19:39   Start : 2,000   0   
489   Service.GPS   12-02-13 19:40   Begin of LocationChanged   0   
490   Service.GPS   12-02-13 19:40   MORE than one minute   0   
491   Service.GPS   12-02-13 19:40   Lat: 16.929502537705023 Long: -89.89254035649192   0   
492   Service.GPS   12-02-13 19:40   Store in Data Base   0   
493   Service.GPS   12-02-13 19:40   End of Store in Data Base   0   
494   Service.GPS   12-02-13 19:40   End of LocationChanged   0   
495   Service.GPS   12-02-13 19:40   Service Destroy   0   
[COLOR="red"]496   Main.Create.FirstTime   12-02-13 20:17   DataBase Opened   0   [/COLOR]
497   Service.GPS   12-02-13 20:17   Service_Create   0   
498   Service.GPS   12-02-13 20:17   Service_Start   0   
499   Service.GPS   12-02-13 20:17   Stop previos GPS   0   
500   Service.GPS   12-02-13 20:17   Next Schedule : 2013-02-12 20:20:08   0   
501   Service.GPS   12-02-13 20:17   GPS Start   0   
502   Service.GPS   12-02-13 20:17   Start : 2,000   0   
503   Service.GPS   12-02-13 20:18   Begin of LocationChanged   0   
504   Service.GPS   12-02-13 20:18   MORE than one minute   0   
505   Service.GPS   12-02-13 20:18   Lat: 16.929411575547455 Long: -89.89217216880358   0   
506   Service.GPS   12-02-13 20:18   Store in Data Base   0   
507   Service.GPS   12-02-13 20:18   End of Store in Data Base   0   
508   Service.GPS   12-02-13 20:18   End of LocationChanged   0   
509   Service.GPS   12-02-13 20:18   Service Destroy   0   
510   Service.GPS   12-02-13 20:20   Service_Create   0   
511   Service.GPS   12-02-13 20:20   Service_Start   0   
512   Service.GPS   12-02-13 20:20   Stop previos GPS   0   
513   Service.GPS   12-02-13 20:20   Next Schedule : 2013-02-12 20:23:09   0   
514   Service.GPS   12-02-13 20:20   GPS Start   0   
515   Service.GPS   12-02-13 20:20   Start : 2,000   0   
516   Service.GPS   12-02-13 20:23   Service_Start   0   
517   Service.GPS   12-02-13 20:23   Stop previos GPS   0   
518   Service.GPS   12-02-13 20:23   Next Schedule : 2013-02-12 20:26:09   0   
519   Service.GPS   12-02-13 20:23   GPS Start   0   
520   Service.GPS   12-02-13 20:23   Start : 2,000   0   
521   Service.GPS   12-02-13 20:26   Service_Start   0   
522   Service.GPS   12-02-13 20:26   Stop previos GPS   0   
523   Service.GPS   12-02-13 20:26   Next Schedule : 2013-02-12 20:29:09   0   
524   Service.GPS   12-02-13 20:26   GPS Start   0   
525   Service.GPS   12-02-13 20:26   Start : 2,000   0   
526   Service.GPS   12-02-13 20:29   Service_Start   0   
527   Service.GPS   12-02-13 20:29   Stop previos GPS   0   
528   Service.GPS   12-02-13 20:29   Next Schedule : 2013-02-12 20:32:09   0   
529   Service.GPS   12-02-13 20:29   GPS Start   0   
530   Service.GPS   12-02-13 20:29   Start : 2,000   0   
531   Service.GPS   12-02-13 20:32   Service_Start   0   
532   Service.GPS   12-02-13 20:32   Stop previos GPS   0   
533   Service.GPS   12-02-13 20:32   Next Schedule : 2013-02-12 20:35:09   0   
534   Service.GPS   12-02-13 20:32   GPS Start   0   
535   Service.GPS   12-02-13 20:32   Start : 2,000   0   
536   Service.GPS   12-02-13 20:35   Service_Start   0   
537   Service.GPS   12-02-13 20:35   Stop previos GPS   0   
538   Service.GPS   12-02-13 20:35   Next Schedule : 2013-02-12 20:38:09   0   
539   Service.GPS   12-02-13 20:35   GPS Start   0   
540   Service.GPS   12-02-13 20:35   Start : 2,000   0   
541   Service.GPS   12-02-13 20:38   Service_Start   0   
542   Service.GPS   12-02-13 20:38   Stop previos GPS   0   
543   Service.GPS   12-02-13 20:38   Next Schedule : 2013-02-12 20:41:09   0   
544   Service.GPS   12-02-13 20:38   GPS Start   0   
545   Service.GPS   12-02-13 20:38   Start : 2,000   0   
546   Service.GPS   12-02-13 20:41   Service_Start   0   
547   Service.GPS   12-02-13 20:41   Stop previos GPS   0   
548   Service.GPS   12-02-13 20:41   Next Schedule : 2013-02-12 20:44:09   0   
549   Service.GPS   12-02-13 20:41   GPS Start   0   
550   Service.GPS   12-02-13 20:41   Start : 2,000   0   
551   Service.GPS   12-02-13 20:44   Service_Start   0   
552   Service.GPS   12-02-13 20:44   Stop previos GPS   0   
553   Service.GPS   12-02-13 20:44   Next Schedule : 2013-02-12 20:47:09   0   
554   Service.GPS   12-02-13 20:44   GPS Start   0   
555   Service.GPS   12-02-13 20:44   Start : 2,000   0   
556   Main.Force_Exit   12-02-13 20:44   Trying to Force Exit   0   
557   Main.Force_Exit   12-02-13 20:44   User responde YES to force exit   0   
558   Main.Force_Exit   12-02-13 20:44   Exit Aplication   0


Thanks for your time.

Edgar
 

Attachments

  • Gps_Test.zip
    16.6 KB · Views: 165
  • Log.txt
    19 KB · Views: 156

edgar_ortiz

Active Member
Licensed User
Longtime User
Erel,

That means that the variables defined in "Process_Globals" are still in use?

Thanks... I'll try

How I do that in my code (StartForeground)??

Regards,

Edgar
 
Last edited:
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
Erel,

Thanks for your time.

That's the problem:
HTML:
Once the process is killed it stops running. Values saved in process global variables will be lost

If you check the log (PK = 98,138,350)... the app start several times (first Time) and then the service fail... because is still running.

B4X:
** Service (gps) Start **
rutinas_write_log (java line: 108)
java.lang.StackOverflowError
   at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:153)
   at java.lang.StringBuilder.append(StringBuilder.java:217)
   at gps.test.rutinas._write_log(rutinas.java:108)

Any help is welcome.

Regards,

Edgar
 
Upvote 0
Top