1. You need to use PhoneWakeState to acquire a partial lock if you want to keep the service running.
2. Remove any calls to DoEvents.
3. You need to find out which code causes the main thread to freeze. Close the app when you see the ANR dialog it should print more information in the logs.
Make sure to test it in release mode.
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:43)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.821: E/AndroidRuntime(15944): Process: GPS.Clientes, PID: 15944
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.881: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{5268c24 u0 d0 Application Error: GPS.Clientes}
01-25 20:57:00.901: V/WindowStateAnimator(2558): Finishing drawing window Window{5268c24 u0 d0 Application Error: GPS.Clientes}: mDrawState=DRAW_PENDING
01-25 20:57:00.901: V/WindowStateAnimator(2558): Finishing drawing window Window{5268c24 u0 d0 Application Error: GPS.Clientes}: mDrawState=HAS_DRAWN
01-25 20:57:02.491: I/ActivityManager(2558): Process GPS.Clientes (pid 15944)(adj 2) has died(90,690)
01-25 20:57:02.491: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-25 20:57:02.491: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-25 20:57:02.491: W/ActivityManager(2558): Service crashed 2 times, stopping: ServiceRecord{54253e u0 GPS.Clientes/.gps}
01-25 20:57:02.491: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=15944 ,hash=2500995 ,name=GPS.Clientes
01-25 20:57:02.491: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10262 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10262: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x72 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
Looks like a stack overflow. write_log calls get_format which then calls write_log again.
Sub Write_Log (ParamPrograma As String, ParamInfo As String)
Dim lcSqlComando As String
Dim lcFecha As String
'
lcFecha = NumberFormat2(DateTime.GetYear(DateTime.Now),4,0,0,False) & "-" & _
NumberFormat2(DateTime.GetMonth(DateTime.Now),2,0,0,False) & "-" & _
NumberFormat2(DateTime.GetDayOfMonth(DateTime.Now),2,0,0,False) & " " & _
NumberFormat2(DateTime.GetHour(DateTime.Now),2,0,0,False) & ":" & _
NumberFormat2(DateTime.GetMinute(DateTime.Now),2,0,0,False) & ":" & _
NumberFormat2(DateTime.GetSecond(DateTime.Now),2,0,0,False)
'
lcSqlComando = "INSERT INTO sg_t_log (programa, fecha_hora, info) values (" & _
"^XXParamProgramaXX^," & _
"^" & lcFecha & "^, " & _
"^XXParamInfoXX^)"
lcSqlComando = lcSqlComando.Replace("XXParamProgramaXX", ParamPrograma)
lcSqlComando = lcSqlComando.Replace("XXParamInfoXX", ParamInfo)
lcSqlComando = lcSqlComando.Replace("^", Main.GlbComillas)
Main.DBGPS.ExecNonQuery(lcSqlComando)
'
End Sub
01-26 00:39:57.331: I/ActivityManager(2558): Killing 32506:GPS.Clientes/u0a263 (adj 15): DHA:SPC_empty #17
01-26 00:39:57.421: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:39:57.421: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:39:57.421: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=32506 ,hash=214524108 ,name=GPS.Clientes
01-26 00:40:11.261: I/Timeline(3278): Timeline: Activity_launch_request id:GPS.Clientes time:76041905
01-26 00:40:11.261: V/WindowManager(2558): addAppToken: AppWindowToken{d0184656c token=Token{1d9ce1f ActivityRecord{e036dbe u0 GPS.Clientes/.main t635}}} to stack=1 task=635 at 0
01-26 00:40:11.281: I/ActivityManager(2558): Start proc 570:GPS.Clientes/u0a263 for activity GPS.Clientes/.main
01-26 00:40:11.291: W/SELinux(570): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:40:11.311: D/ActivityManager(2558): Launching GPS.Clientes, updated priority
01-26 00:40:11.311: V/MARsPolicyManager(2558): updatePackagesScore PackageInfo name -- GPS.Clientes
01-26 00:40:11.321: W/System(570): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:40:11.331: V/WindowStateAnimator(2558): Finishing drawing window Window{6cc84a3 u0 d0 Starting GPS.Clientes}: mDrawState=DRAW_PENDING
01-26 00:40:11.331: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{6cc84a3 u0 d0 Starting GPS.Clientes}
01-26 00:40:11.481: D/libGLESv1(570): DTS_GLAPI : DTS is not allowed for Package : GPS.Clientes
01-26 00:40:11.501: V/WindowStateAnimator(2558): Finishing drawing window Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:11.511: I/ActivityManager(2558): Displayed GPS.Clientes/.main: +237ms
01-26 00:40:11.531: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.571: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.571: D/EdgeLight(2558): Turning on edge light for notification (NotificationRecord(0x0429b7f7: pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=null vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))) with color=ffffffff
01-26 00:40:11.581: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:11.641: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:11.711: I/Timeline(2558): Timeline: Activity_windows_visible id: ActivityRecord{e036dbe u0 GPS.Clientes/.main t635} time:76042350
01-26 00:40:21.011: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:21.031: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:22.731: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:22.741: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:25.451: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.561: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:40:26.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:27.991: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}
01-26 00:40:29.351: W/VirtualScreenManagerService(2558): failed to move task TaskRecord{c44559f #635 A=GPS.Clientes U=0 sz=1}
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mServices
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mProviders
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mReceivers
01-26 00:40:30.431: I/ApplicationPackageManager(3087): load=GPS.Clientes, bg=96-96, dr=122-122
01-26 00:40:33.181: I/ActivityManager(2558): Killing 570:GPS.Clientes/u0a263 (adj 16): remove task
01-26 00:40:33.281: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:40:33.281: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=570 ,hash=25486941 ,name=GPS.Clientes
01-26 00:40:33.281: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
----
----
01-26 00:40:11.261: I/Timeline(3278): Timeline: Activity_launch_request id:GPS.Clientes time:76041905
01-26 00:40:11.261: V/WindowManager(2558): addAppToken: AppWindowToken{d0184656c token=Token{1d9ce1f ActivityRecord{e036dbe u0 GPS.Clientes/.main t635}}} to stack=1 task=635 at 0
01-26 00:40:11.281: I/ActivityManager(2558): Start proc 570:GPS.Clientes/u0a263 for activity GPS.Clientes/.main
01-26 00:40:11.291: W/SELinux(570): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:40:11.311: D/ActivityManager(2558): Launching GPS.Clientes, updated priority
01-26 00:40:11.311: V/MARsPolicyManager(2558): updatePackagesScore PackageInfo name -- GPS.Clientes
01-26 00:40:11.321: W/System(570): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:40:11.331: V/WindowStateAnimator(2558): Finishing drawing window Window{6cc84a3 u0 d0 Starting GPS.Clientes}: mDrawState=DRAW_PENDING
01-26 00:40:11.331: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{6cc84a3 u0 d0 Starting GPS.Clientes}
01-26 00:40:11.481: D/libGLESv1(570): DTS_GLAPI : DTS is not allowed for Package : GPS.Clientes
01-26 00:40:11.501: V/WindowStateAnimator(2558): Finishing drawing window Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:11.511: I/ActivityManager(2558): Displayed GPS.Clientes/.main: +237ms
01-26 00:40:11.531: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.571: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.571: D/EdgeLight(2558): Turning on edge light for notification (NotificationRecord(0x0429b7f7: pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=null vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))) with color=ffffffff
01-26 00:40:11.581: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:11.641: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:11.711: I/Timeline(2558): Timeline: Activity_windows_visible id: ActivityRecord{e036dbe u0 GPS.Clientes/.main t635} time:76042350
01-26 00:40:21.011: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:21.031: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:22.731: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:22.741: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:25.451: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.561: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:40:26.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:27.991: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}
01-26 00:40:29.351: W/VirtualScreenManagerService(2558): failed to move task TaskRecord{c44559f #635 A=GPS.Clientes U=0 sz=1}
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mServices
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mProviders
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mReceivers
01-26 00:40:30.431: I/ApplicationPackageManager(3087): load=GPS.Clientes, bg=96-96, dr=122-122
01-26 00:40:33.181: I/ActivityManager(2558): Killing 570:GPS.Clientes/u0a263 (adj 16): remove task
01-26 00:40:33.281: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:40:33.281: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=570 ,hash=25486941 ,name=GPS.Clientes
01-26 00:40:33.281: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:45:11.641: I/ActivityManager(2558): Start proc 755:GPS.Clientes/u0a263 for service GPS.Clientes/.gps
01-26 00:45:11.641: W/SELinux(755): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:45:11.681: W/System(755): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:45:11.741: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:11.741: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:11.751: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:45:11.751: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:11.751: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:11.781: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:11.851: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.starter._application_error(starter.java:158)
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:12.841: E/AndroidRuntime(755): Process: GPS.Clientes, PID: 755
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:12.871: I/ActivityManager(2558): Process GPS.Clientes (pid 755)(adj 2) has died(20,747)
01-26 00:45:12.871: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:45:12.881: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:45:12.881: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.gps in 1000ms
01-26 00:45:12.881: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=755 ,hash=203819364 ,name=GPS.Clientes
01-26 00:45:12.891: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x72 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:13.891: W/SELinux(835): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:45:13.891: I/ActivityManager(2558): Start proc 835:GPS.Clientes/u0a263 for service GPS.Clientes/.gps
01-26 00:45:13.911: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:13.911: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:45:13.921: W/System(835): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:45:13.981: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:13.981: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:45:13.981: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:13.991: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:45:14.001: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:14.001: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:14.041: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:14.081: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.starter._application_error(starter.java:158)
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:15.041: E/AndroidRuntime(835): Process: GPS.Clientes, PID: 835
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:15.091: I/ActivityManager(2558): Process GPS.Clientes (pid 835)(adj 2) has died(23,747)
01-26 00:45:15.091: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:45:15.091: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:45:15.091: W/ActivityManager(2558): Service crashed 2 times, stopping: ServiceRecord{3ec57d0 u0 GPS.Clientes/.gps}
01-26 00:45:15.091: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=835 ,hash=129568842 ,name=GPS.Clientes
01-26 00:45:15.111: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x72 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
--------- beginning of main
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412740174
YYYY-MM-DD HH:MM:SS
1485412441187
YYYY-MM-DD HH:MM:SS
1485412441188
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
~i:** Activity (main) Pause, UserClosed = true **
~i:** Activity (main) Create, isFirst = false **
~i:** Activity (main) Resume **
~i:** Activity (main) Pause, UserClosed = true **
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412563207
YYYY-MM-DD HH:MM:SS
1485412863255
YYYY-MM-DD HH:MM:SS
1485412574840
YYYY-MM-DD HH:MM:SS
1485412574840
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
No partial wakelock.
~i:** Activity (main) Pause, UserClosed = false **
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412894281
YYYY-MM-DD HH:MM:SS
1485412595257
YYYY-MM-DD HH:MM:SS
1485412595257
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
~i:** Activity (main) Pause, UserClosed = true **
--------- beginning of system
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412811557
YYYY-MM-DD HH:MM:SS
1485413111601
YYYY-MM-DD HH:MM:SS
1485412826534
YYYY-MM-DD HH:MM:SS
1485412826535
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
No partial wakelock.
~i:** Activity (main) Pause, UserClosed = true **
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
~e:rutinas_write_log (java line: 392)
~e:java.lang.RuntimeException: Object should first be initialized.
~e: at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
~e: at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
~e: at GPS.Clientes.gps._service_start(gps.java:340)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at GPS.Clientes.gps.handleStart(gps.java:102)
~e: at GPS.Clientes.gps.access$000(gps.java:8)
~e: at GPS.Clientes.gps$1.run(gps.java:77)
~e: at android.os.Handler.handleCallback(Handler.java:739)
~e: at android.os.Handler.dispatchMessage(Handler.java:95)
~e: at android.os.Looper.loop(Looper.java:158)
~e: at android.app.ActivityThread.main(ActivityThread.java:7230)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
~e:rutinas_write_log (java line: 392)
~e:java.lang.RuntimeException: Object should first be initialized.
~e: at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
~e: at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
~e: at GPS.Clientes.gps._service_start(gps.java:340)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at GPS.Clientes.gps.handleStart(gps.java:102)
~e: at GPS.Clientes.gps.access$000(gps.java:8)
~e: at GPS.Clientes.gps$1.run(gps.java:77)
~e: at android.os.Handler.handleCallback(Handler.java:739)
~e: at android.os.Handler.dispatchMessage(Handler.java:95)
~e: at android.os.Looper.loop(Looper.java:158)
~e: at android.app.ActivityThread.main(ActivityThread.java:7230)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
java.lang.RuntimeException: Object should first be initialized.
at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
at GPS.Clientes.rutinas._write_log(rutinas.java:392)
at GPS.Clientes.gps._service_start(gps.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at GPS.Clientes.gps.handleStart(gps.java:102)
at GPS.Clientes.gps.access$000(gps.java:8)
at GPS.Clientes.gps$1.run(gps.java:77)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7230)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
--
Are you initializing the SQL object in service_create of the starter service?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?