Android Question About services live time

AndrewChan0513

Member
Licensed User
1,
My services always auto stoped, but there is no error,
I've try to set the android's "Background process limit".
When I set "Standard limit", then my services will stop after 2~10 mins.
When I set "At most 4 processes", then my services will stop after 1 sec = =!

"Standard limit" (No any error, just need to start the services again after it stoped):
00:53:11.715 I/B4A (27116): ~i:** Activity (main) Create, isFirst = true **
00:53:11.895 I/B4A (27116): ~i:** Activity (main) Resume **
00:53:12.045 I/B4A (27116): ~i:** Service (s1) Create **
00:53:12.045 I/B4A (27116): ~i:** Service (s1) Start **
00:53:12.055 I/B4A (27116): ~i:** Service (pushservice) Create **
00:53:12.055 I/B4A (27116): ~i:** Service (pushservice) Start **
00:53:13.767 I/B4A (27116): ~i:** Service (pushservice) Start **
00:53:13.797 I/B4A (27116): ~i:** Service (httputils2service) Create **
00:53:13.797 I/B4A (27116): ~i:** Service (httputils2service) Start **
00:53:13.967 I/B4A (27116): ~i:** Service (s1) Destroy **
00:53:13.967 I/B4A (27116): ~i:** Service (s2) Create **
00:53:13.997 I/B4A (27116): ~i:** Service (s2) Start **
00:53:13.997 I/B4A (27116): ~i:** Activity (main) Pause, UserClosed = true **
00:55:20.120 I/B4A (28300): ~i:** Activity (main) Create, isFirst = true **
00:55:20.230 I/B4A (28300): ~i:** Activity (main) Resume **
00:55:20.360 I/B4A (28300): ~i:** Service (s1) Create **
00:55:20.360 I/B4A (28300): ~i:** Service (s1) Start **
00:55:20.370 I/B4A (28300): ~i:** Service (pushservice) Create **
00:55:20.370 I/B4A (28300): ~i:** Service (pushservice) Start **
00:55:21.141 I/B4A (28300): ~i:** Service (pushservice) Start **
00:55:21.161 I/B4A (28300): ~i:** Service (httputils2service) Create **
00:55:21.161 I/B4A (28300): ~i:** Service (httputils2service) Start **
00:55:22.032 I/B4A (28300): ~i:** Service (s1) Destroy **
00:55:22.032 I/B4A (28300): ~i:** Service (s2) Create **
00:55:22.042 I/B4A (28300): ~i:** Service (s2) Start **
00:55:22.042 I/B4A (28300): ~i:** Activity (main) Pause, UserClosed = true **

How can I make my services keep alive?

That "s2" service code :
B4X:
Sub Service_Create
    Timer1.Initialize("Timer1",1000)
    Timer1.Interval = 1000
       Timer1.Enabled = True
End Sub


Sub Timer1_Tick
    Dim Time_Num As Int
    DateTime.DateFormat="HHmmss"
    Time_Num = DateTime.Date(DateTime.now)
        DateTime.DateFormat="HH:mm:ss"
    If ((Time_Num > 75900) AND (Time_Num < 200000)) Then
        n.SetInfo("[" & DateTime.Date(DateTime.now) & "]", "Start!", Main)
        Timer1.Enabled = False
        Timer2.Initialize("Timer2",2500)
        Timer2.Interval = 1500
           Timer2.Enabled = True
        TimerN = 0
        t = 0
    Else
        n.SetInfo("[" & DateTime.Date(DateTime.now) & "]", "It will start at 07:59", Main) 'Change Main (above) to "" if this code is in the main module.
        n.Notify(1)
    End If

End Sub

2, About GCM problem
After a long time, when I use gcm send something to my device, it got a error msg.
Is that gcm have a live time too ?
Or just I do something worng...
12:27:14.410 I/B4A (30218): ~e:java.lang.RuntimeException: Unable to create service com.andrewchan.smsforbotv2.pushservice: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
12:27:14.410 I/B4A (30218): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
12:27:14.410 I/B4A (30218): ~e: at android.app.ActivityThread.access$1600(ActivityThread.java:140)
12:27:14.410 I/B4A (30218): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
12:27:14.410 I/B4A (30218): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
12:27:14.410 I/B4A (30218): ~e: at android.os.Looper.loop(Looper.java:137)
12:27:14.410 I/B4A (30218): ~e: at android.app.ActivityThread.main(ActivityThread.java:4898)
12:27:14.410 I/B4A (30218): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:27:14.410 I/B4A (30218): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:27:14.410 I/B4A (30218): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
12:27:14.410 I/B4A (30218): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
12:27:14.410 I/B4A (30218): ~e: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:106)
12:27:14.410 I/B4A (30218): ~e: at dalvik.system.NativeStart.main(Native Method)
12:27:14.410 I/B4A (30218): ~e:Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
12:27:14.410 I/B4A (30218): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:33)
12:27:14.410 I/B4A (30218): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
12:27:14.410 I/B4A (30218): ~e: ... 11 more
12:27:14.410 I/B4A (30218): ~e:Caused by: java.lang.reflect.InvocationTargetException
12:27:14.410 I/B4A (30218): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:27:14.410 I/B4A (30218): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:27:14.410 I/B4A (30218): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:31)
12:27:14.410 I/B4A (30218): ~e: ... 12 more
12:27:14.410 I/B4A (30218): ~e:Caused by: java.lang.RuntimeException: java.lang.NullPointerException
12:27:14.410 I/B4A (30218): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:572)
12:27:14.410 I/B4A (30218): ~e: ... 15 more
12:27:14.410 I/B4A (30218): ~e:Caused by: java.lang.NullPointerException
12:27:14.410 I/B4A (30218): ~e: at anywheresoftware.b4a.BA.<init>(BA.java:106)
12:27:14.410 I/B4A (30218): ~e: at adr.stringfunctions.stringfunctions.innerInitialize(stringfunctions.java:12)
12:27:14.410 I/B4A (30218): ~e: at adr.stringfunctions.stringfunctions._initialize(stringfunctions.java:324)
12:27:14.410 I/B4A (30218): ~e: at com.andrewchan.smsforbotv2.main._process_globals(main.java:693)
12:27:14.410 I/B4A (30218): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:564)
12:27:14.410 I/B4A (30218): ~e: ... 15 more
12:27:50.540 I/B4A (31228): ~e:java.lang.RuntimeException: Unable to create service com.andrewchan.smsforbotv2.pushservice: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
12:27:50.540 I/B4A (31228): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
12:27:50.540 I/B4A (31228): ~e: at android.app.ActivityThread.access$1600(ActivityThread.java:140)
12:27:50.540 I/B4A (31228): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
12:27:50.540 I/B4A (31228): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
12:27:50.540 I/B4A (31228): ~e: at android.os.Looper.loop(Looper.java:137)
12:27:50.540 I/B4A (31228): ~e: at android.app.ActivityThread.main(ActivityThread.java:4898)
12:27:50.540 I/B4A (31228): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:27:50.540 I/B4A (31228): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:27:50.540 I/B4A (31228): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
12:27:50.540 I/B4A (31228): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
12:27:50.540 I/B4A (31228): ~e: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:106)
12:27:50.540 I/B4A (31228): ~e: at dalvik.system.NativeStart.main(Native Method)
12:27:50.540 I/B4A (31228): ~e:Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
12:27:50.540 I/B4A (31228): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:33)
12:27:50.540 I/B4A (31228): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
12:27:50.540 I/B4A (31228): ~e: ... 11 more
12:27:50.540 I/B4A (31228): ~e:Caused by: java.lang.reflect.InvocationTargetException
12:27:50.540 I/B4A (31228): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:27:50.540 I/B4A (31228): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:27:50.540 I/B4A (31228): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:31)
12:27:50.540 I/B4A (31228): ~e: ... 12 more
12:27:50.540 I/B4A (31228): ~e:Caused by: java.lang.RuntimeException: java.lang.NullPointerException
12:27:50.540 I/B4A (31228): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:572)
12:27:50.540 I/B4A (31228): ~e: ... 15 more
12:27:50.540 I/B4A (31228): ~e:Caused by: java.lang.NullPointerException
12:27:50.540 I/B4A (31228): ~e: at anywheresoftware.b4a.BA.<init>(BA.java:106)
12:27:50.540 I/B4A (31228): ~e: at adr.stringfunctions.stringfunctions.innerInitialize(stringfunctions.java:12)
12:27:50.540 I/B4A (31228): ~e: at adr.stringfunctions.stringfunctions._initialize(stringfunctions.java:324)
12:27:50.540 I/B4A (31228): ~e: at com.andrewchan.smsforbotv2.main._process_globals(main.java:693)
12:27:50.540 I/B4A (31228): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:564)
12:27:50.540 I/B4A (31228): ~e: ... 15 more
13:48:08.370 I/B4A (30067): ~e:java.lang.RuntimeException: Unable to create service com.andrewchan.smsforbotv2.pushservice: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
13:48:08.370 I/B4A (30067): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
13:48:08.370 I/B4A (30067): ~e: at android.app.ActivityThread.access$1600(ActivityThread.java:140)
13:48:08.370 I/B4A (30067): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
13:48:08.370 I/B4A (30067): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
13:48:08.370 I/B4A (30067): ~e: at android.os.Looper.loop(Looper.java:137)
13:48:08.370 I/B4A (30067): ~e: at android.app.ActivityThread.main(ActivityThread.java:4898)
13:48:08.370 I/B4A (30067): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
13:48:08.370 I/B4A (30067): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
13:48:08.370 I/B4A (30067): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
13:48:08.370 I/B4A (30067): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
13:48:08.370 I/B4A (30067): ~e: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:106)
13:48:08.370 I/B4A (30067): ~e: at dalvik.system.NativeStart.main(Native Method)
13:48:08.370 I/B4A (30067): ~e:Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
13:48:08.370 I/B4A (30067): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:33)
13:48:08.370 I/B4A (30067): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
13:48:08.370 I/B4A (30067): ~e: ... 11 more
13:48:08.370 I/B4A (30067): ~e:Caused by: java.lang.reflect.InvocationTargetException
13:48:08.370 I/B4A (30067): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
13:48:08.370 I/B4A (30067): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
13:48:08.370 I/B4A (30067): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:31)
13:48:08.370 I/B4A (30067): ~e: ... 12 more
13:48:08.370 I/B4A (30067): ~e:Caused by: java.lang.RuntimeException: java.lang.NullPointerException
13:48:08.370 I/B4A (30067): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:572)
13:48:08.370 I/B4A (30067): ~e: ... 15 more
13:48:08.370 I/B4A (30067): ~e:Caused by: java.lang.NullPointerException
13:48:08.370 I/B4A (30067): ~e: at anywheresoftware.b4a.BA.<init>(BA.java:106)
13:48:08.370 I/B4A (30067): ~e: at adr.stringfunctions.stringfunctions.innerInitialize(stringfunctions.java:12)
13:48:08.370 I/B4A (30067): ~e: at adr.stringfunctions.stringfunctions._initialize(stringfunctions.java:324)
13:48:08.370 I/B4A (30067): ~e: at com.andrewchan.smsforbotv2.main._process_globals(main.java:693)
13:48:08.370 I/B4A (30067): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:564)
13:48:08.370 I/B4A (30067): ~e: ... 15 more
13:48:42.185 I/B4A (30440): ~e:java.lang.RuntimeException: Unable to create service com.andrewchan.smsforbotv2.pushservice: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
13:48:42.185 I/B4A (30440): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
13:48:42.185 I/B4A (30440): ~e: at android.app.ActivityThread.access$1600(ActivityThread.java:140)
13:48:42.185 I/B4A (30440): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
13:48:42.185 I/B4A (30440): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
13:48:42.185 I/B4A (30440): ~e: at android.os.Looper.loop(Looper.java:137)
13:48:42.185 I/B4A (30440): ~e: at android.app.ActivityThread.main(ActivityThread.java:4898)
13:48:42.185 I/B4A (30440): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
13:48:42.185 I/B4A (30440): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
13:48:42.185 I/B4A (30440): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
13:48:42.185 I/B4A (30440): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
13:48:42.185 I/B4A (30440): ~e: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:106)
13:48:42.185 I/B4A (30440): ~e: at dalvik.system.NativeStart.main(Native Method)
13:48:42.185 I/B4A (30440): ~e:Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
13:48:42.185 I/B4A (30440): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:33)
13:48:42.185 I/B4A (30440): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
13:48:42.185 I/B4A (30440): ~e: ... 11 more
13:48:42.185 I/B4A (30440): ~e:Caused by: java.lang.reflect.InvocationTargetException
13:48:42.185 I/B4A (30440): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
13:48:42.185 I/B4A (30440): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
13:48:42.185 I/B4A (30440): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:31)
13:48:42.185 I/B4A (30440): ~e: ... 12 more
13:48:42.185 I/B4A (30440): ~e:Caused by: java.lang.RuntimeException: java.lang.NullPointerException
13:48:42.185 I/B4A (30440): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:572)
13:48:42.185 I/B4A (30440): ~e: ... 15 more
13:48:42.185 I/B4A (30440): ~e:Caused by: java.lang.NullPointerException
13:48:42.185 I/B4A (30440): ~e: at anywheresoftware.b4a.BA.<init>(BA.java:106)
13:48:42.185 I/B4A (30440): ~e: at adr.stringfunctions.stringfunctions.innerInitialize(stringfunctions.java:12)
13:48:42.185 I/B4A (30440): ~e: at adr.stringfunctions.stringfunctions._initialize(stringfunctions.java:324)
13:48:42.185 I/B4A (30440): ~e: at com.andrewchan.smsforbotv2.main._process_globals(main.java:693)
13:48:42.185 I/B4A (30440): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:564)
13:48:42.185 I/B4A (30440): ~e: ... 15 more

3, I've write a function in GCM service ( MessageArrived ) to call a service.
B4X:
    If Intent.HasExtra("data") Then TypeN = Intent.GetExtra("type")
        If TypeN = "3" Then
            StopService(s1)
            StartService(s2)
            CallSubDelayed(s2,"ReStart")
            ToastMessageShow("Start Services", True)
            Return
        Else If TypeN = "4" Then
            ToastMessageShow("Kill Services", True)
            s2.Timer2.Enabled = False
            StopService(s2)
            StopService(s1)
            Return
        End If
In type = 3,
The service is start properly,
But in type = 4,
The service will restart sometimes, and sometimes can stop properly. -_-!!!
Log :
14:02:24.675 I/B4A ( 2896): ~i:** Activity (main) Create, isFirst = true **
14:02:24.885 I/B4A ( 2896): ~i:** Activity (main) Resume **
14:02:24.930 I/B4A ( 2896): ~i:** Service (s1) Create **
14:02:24.930 I/B4A ( 2896): ~i:** Service (s1) Start **
14:02:25.085 I/B4A ( 2896): ~i:** Service (pushservice) Create **
14:02:25.085 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:02:26.400 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:02:26.430 I/B4A ( 2896): ~i:** Service (httputils2service) Create **
14:02:26.430 I/B4A ( 2896): ~i:** Service (httputils2service) Start **
14:02:30.305 I/B4A ( 2896): ~i:** Activity (main) Pause, UserClosed = false **
14:02:30.345 I/B4A ( 2896): ~i:** Service (s1) Destroy **
14:02:47.380 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:02:47.380 I/B4A ( 2896): New command: 3
14:02:47.410 I/B4A ( 2896): ~i:** Service (s2) Create **
14:02:47.415 I/B4A ( 2896): ~i:** Service (s2) Start **
14:03:03.660 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:03:03.660 I/B4A ( 2896): New command: 4
14:03:03.670 I/B4A ( 2896): ~i:** Service (s2) Destroy **
14:03:15.040 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:03:15.040 I/B4A ( 2896): New command: 3
14:03:15.085 I/B4A ( 2896): ~i:** Service (s2) Create **
14:03:15.095 I/B4A ( 2896): ~i:** Service (s2) Start **
14:03:20.345 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:03:20.345 I/B4A ( 2896): New command: 4
14:03:20.360 I/B4A ( 2896): ~i:** Service (s2) Destroy **
14:03:28.510 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:03:28.515 I/B4A ( 2896): New command: 3
14:03:28.560 I/B4A ( 2896): ~i:** Service (s2) Create **
14:03:28.565 I/B4A ( 2896): ~i:** Service (s2) Start **
14:03:35.055 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:03:35.055 I/B4A ( 2896): New command: 4
14:03:35.070 I/B4A ( 2896): ~i:** Service (s2) Destroy **
14:03:36.100 I/B4A ( 2896): ~i:** Service (s2) Create **
14:03:36.105 I/B4A ( 2896): ~i:** Service (s2) Start **
14:03:47.680 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:03:47.680 I/B4A ( 2896): New command: 4
14:03:47.695 I/B4A ( 2896): ~i:** Service (s2) Destroy **
14:03:49.645 I/B4A ( 2896): ~i:** Service (s2) Create **
14:03:49.655 I/B4A ( 2896): ~i:** Service (s2) Start **
14:04:05.015 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:04:05.015 I/B4A ( 2896): New command: 4
14:04:05.220 I/B4A ( 2896): ~i:** Service (s2) Destroy **
14:04:05.805 I/B4A ( 2896): ~i:** Service (s2) Create **
14:04:05.810 I/B4A ( 2896): ~i:** Service (s2) Start **
14:04:10.955 I/B4A ( 2896): ~i:** Service (pushservice) Start **
14:04:10.955 I/B4A ( 2896): New command: 4
14:04:10.965 I/B4A ( 2896): ~i:** Service (s2) Destroy **
1, type 3 -> It started.
2, type 4 -> It stoped.
3, type 3 -> It started.
4, type 4 -> It stoped.
5, type 3 -> It started.
6, type 4 -> It restarted !!!!!!
7, type 4 -> It restarted !!!!!!
8, type 4 -> It restarted !!!!!!
9, type 4 -> Finally, It know stoped.


4, Fromula problem

4.1, I dim a (NBnum as Int) in (Process_Globals), then I make it when messagearrived one time, it will add 1 it self.
But it didn't, is it because everytimes when GCM coming it will start the services again, so the NBnum will always keep at 10 ?
If is that, can I temp a var in GCM services? or do I need to put NBnum = 10 in (Process_Globals) ? Is there is the right way to do that?

4.2,
"If Line1.Length > 0 Then" this not working - -!
And I've try "If Line1 = "" Then",
is also not working.
It don't care Line1 this var have / don't have value,
And it will do inside if : "nbInboxStyle.AddLine = Line1"

B4X:
Sub Service_Start (StartingIntent As Intent)
    NBnum = 10
End Sub

Sub MessageArrived (Intent As Intent)
   If TypeN = "2" Then
        NBnum = NBnum + 1
        nb.OnGoingEvent = False
        nbInboxStyle.BigContentTitle = Title
        nbInboxStyle.SummaryText = Summary
        If Line1.Length > 0 Then
            nbInboxStyle.AddLine = Line1
        End If
        If Line2.Length > 0 Then
            nbInboxStyle.AddLine = Line2
        End If
        If Line3.Length > 0 Then
            nbInboxStyle.AddLine = Line3
        End If
        If Line4.Length > 0 Then
            nbInboxStyle.AddLine = Line4
        End If
        If Line5.Length > 0 Then
            nbInboxStyle.AddLine = Line5
        End If
        nb.SetStyle(nbInboxStyle)
           nb.Notify(NBnum)
    End If
End Sub

5, Mainfest Problem
I've using Receive SMS method
B4X:
AddPermission(android.permission.RECEIVE_SMS)
AddReceiverText(s1,
<intent-filter>
    <action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>)
AddReceiverText(s2,
<intent-filter>
    <action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>)
Can I have a solution :
If s2 is active, just s1 have action.
If s1 is active, just s2 have action.
Doing like this ?

P.S. I attatched my full app source code.
 

Attachments

  • chbv8.zip
    31.6 KB · Views: 77
Last edited:

DonManfred

Expert
Licensed User
Upvote 0

AndrewChan0513

Member
Licensed User
Have you seen this?
I am very appreciative of your help.
I've already google 3 days..
But I can't find out this method.
May be I am using the wrong keywords .. :(
I found a lot of resources is saying use "onCreate" to create services - -!
You help me to fix my very big trouble...

Thanks a lot again..
 
Upvote 0

AndrewChan0513

Member
Licensed User
1, I am using this code to fixed
B4X:
#StartCommandReturnValue: android.app.Service.START_STICKY

2, Wait for tomorrow to try again

4.1, I've tried put the NBnum to global, it seems work. Seems no error.
4.2, I've using this code to fixed
B4X:
If Line1 <> Null Then
 
Upvote 0

AndrewChan0513

Member
Licensed User
Oh. No..
I've already use START_STICKY.
But the service still get kill by android after 3hrs - -!
Help - -!!

And sometimes it show an error msg :
03:31:36.301 I/B4A ( 8771): ~e:java.lang.RuntimeException: Unable to create service com.andrewchan.smsforbotv2.pushservice: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
03:31:36.301 I/B4A ( 8771): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2605)
03:31:36.301 I/B4A ( 8771): ~e: at android.app.ActivityThread.access$1700(ActivityThread.java:151)
03:31:36.301 I/B4A ( 8771): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1369)
03:31:36.301 I/B4A ( 8771): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
03:31:36.301 I/B4A ( 8771): ~e: at android.os.Looper.loop(Looper.java:137)
03:31:36.301 I/B4A ( 8771): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
03:31:36.301 I/B4A ( 8771): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
03:31:36.301 I/B4A ( 8771): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
03:31:36.301 I/B4A ( 8771): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
03:31:36.301 I/B4A ( 8771): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
03:31:36.301 I/B4A ( 8771): ~e: at dalvik.system.NativeStart.main(Native Method)
03:31:36.301 I/B4A ( 8771): ~e:Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
03:31:36.301 I/B4A ( 8771): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:33)
03:31:36.301 I/B4A ( 8771): ~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2595)
03:31:36.301 I/B4A ( 8771): ~e: ... 10 more
03:31:36.301 I/B4A ( 8771): ~e:Caused by: java.lang.reflect.InvocationTargetException
03:31:36.301 I/B4A ( 8771): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
03:31:36.301 I/B4A ( 8771): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
03:31:36.301 I/B4A ( 8771): ~e: at com.andrewchan.smsforbotv2.pushservice.onCreate(pushservice.java:31)
03:31:36.301 I/B4A ( 8771): ~e: ... 11 more
03:31:36.301 I/B4A ( 8771): ~e:Caused by: java.lang.RuntimeException: java.lang.NullPointerException
03:31:36.301 I/B4A ( 8771): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:584)
03:31:36.301 I/B4A ( 8771): ~e: ... 14 more
03:31:36.301 I/B4A ( 8771): ~e:Caused by: java.lang.NullPointerException
03:31:36.301 I/B4A ( 8771): ~e: at anywheresoftware.b4a.BA.<init>(BA.java:106)
03:31:36.301 I/B4A ( 8771): ~e: at adr.stringfunctions.stringfunctions.innerInitialize(stringfunctions.java:12)
03:31:36.301 I/B4A ( 8771): ~e: at adr.stringfunctions.stringfunctions._initialize(stringfunctions.java:324)
03:31:36.301 I/B4A ( 8771): ~e: at com.andrewchan.smsforbotv2.main._process_globals(main.java:705)
03:31:36.301 I/B4A ( 8771): ~e: at com.andrewchan.smsforbotv2.main.initializeProcessGlobals(main.java:576)
03:31:36.301 I/B4A ( 8771): ~e: ... 14 more


Attached my new source code
 

Attachments

  • chbv8.zip
    32 KB · Views: 78
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Hello,
I am sorry as I had no opportunity to read the code. Have you tried to use the PhoneWakeState :http://www.basic4ppc.com/android/help/phone.html#phonewakestate

If yes, I have learned by experience that some lockscreens put the device to sleep even if we have put a different State. If possible try to unable the lock screen to see if it is better. And if it is the issue, you'll find on the forum the necessary code and samples to make your own lock screen.

Hope this could help
 
Upvote 0

AndrewChan0513

Member
Licensed User
The problem is in your Process_Globals sub. You should only use it to declare variables.
I don't really understand..
"Unable to create service com.andrewchan.smsforbotv2.pushservice:"
In pushservice,
B4X:
Sub Process_Globals
    Dim NBnum As Int
    NBnum = 10
    Dim nb As NotificationBuilder
    Dim nbBigTextStyle As NotificationBigTextStyle
    Dim nbInboxStyle As NotificationInboxStyle
End Sub
It just declare variables..
There is no any else in Process Globals = =
But it still have error sometimes.. Not everytimes - -

And the main problem is..
Many times is no any error..
But the services still auto killed..

I've tried 4 devices..
1. Samsung Note 2 LTE
2. Samsung S4
3. Samsung S5
4. THL A1

Just Samsung S5 can no error and won't stop service - -!

What should I do ..... - -!!
Help~


Hello,
I am sorry as I had no opportunity to read the code. Have you tried to use the PhoneWakeState :http://www.basic4ppc.com/android/help/phone.html#phonewakestate

If yes, I have learned by experience that some lockscreens put the device to sleep even if we have put a different State. If possible try to unable the lock screen to see if it is better. And if it is the issue, you'll find on the forum the necessary code and samples to make your own lock screen.

Hope this could help

phonewakestate will make the phone screen on - -!
My client will kill me if I did that = =!

Anyway.. Thanks for you help
 
Upvote 0

AndrewChan0513

Member
Licensed User
No. You declare it (Dim) and you assign an Value to it
B4X:
NBnum = 10
should not be used in process global.
Move it to Activity create or resume

Many thanks, take it away now, then no that error now..

See the error message. It happens in Main.Process_Globals where you mistakenly initialize StringFunctions.

Now have a new error message -_-!!!
12:00:38.424 I/B4A ( 5852): ~e:java.lang.RuntimeException: Object should first be initialized (Intent).
12:00:38.424 I/B4A ( 5852): ~e: at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
12:00:38.424 I/B4A ( 5852): ~e: at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
12:00:38.424 I/B4A ( 5852): ~e: at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:452)
12:00:38.424 I/B4A ( 5852): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:00:38.424 I/B4A ( 5852): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:00:38.424 I/B4A ( 5852): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
12:00:38.424 I/B4A ( 5852): ~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
12:00:38.424 I/B4A ( 5852): ~e: at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
12:00:38.424 I/B4A ( 5852): ~e: at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread.access$2000(ActivityThread.java:151)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
12:00:38.424 I/B4A ( 5852): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
12:00:38.424 I/B4A ( 5852): ~e: at android.os.Looper.loop(Looper.java:137)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
12:00:38.424 I/B4A ( 5852): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:00:38.424 I/B4A ( 5852): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:00:38.424 I/B4A ( 5852): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
12:00:38.424 I/B4A ( 5852): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
12:00:38.424 I/B4A ( 5852): ~e: at dalvik.system.NativeStart.main(Native Method)
12:00:38.424 I/B4A ( 5852): ~e:java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@421939b8 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread.access$2000(ActivityThread.java:151)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
12:00:38.424 I/B4A ( 5852): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
12:00:38.424 I/B4A ( 5852): ~e: at android.os.Looper.loop(Looper.java:137)
12:00:38.424 I/B4A ( 5852): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
12:00:38.424 I/B4A ( 5852): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
12:00:38.424 I/B4A ( 5852): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
12:00:38.424 I/B4A ( 5852): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
12:00:38.424 I/B4A ( 5852): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
12:00:38.424 I/B4A ( 5852): ~e: at dalvik.system.NativeStart.main(Native Method)
12:00:38.424 I/B4A ( 5852): ~e:Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
12:00:38.424 I/B4A ( 5852): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)

Object should first be initialized (Intent)
is it talking about :
B4X:
Sub MessageArrived (Intent As Intent)

But if yes... what can I do - -???
 
Upvote 0

AndrewChan0513

Member
Licensed User
Here is the newest error log and the newest source code

But without this error.
"S2" Service have 2 problem too = =!!!!
1, It will auto stop and it will auto start again.. But not work properly...
2, It will auto stop.. And no next !!!!!
I am taking too long to trying to fix this problem = =!
But what I can do.. I've already tryed. And it still will auto stop !!!!!! :mad:

B4X:
Sub Service_Create
    If S2Enable <> 1 Then
        StopService(Me)
    End If
    sf.Initialize
    username = StateManager.GetSetting2("user","")
    password = StateManager.GetSetting2("pass","")
    pc = StateManager.GetSetting2("pc","0") + 1
    phonenum = StateManager.GetSetting2("num","64500366")
       DateTime.DateFormat="HH:mm:ss"
    n.Initialize
    n.Icon = "icon"
    n.SetInfo("[" & DateTime.Date(DateTime.now) & "]Started", username & "," & password & "," & pc & "," & phonenum, Main)
    n.Notify(0) 'Auto Restart to Here !!
    n.Vibrate = False
    n.Sound = False
    Timer1.Initialize("Timer1",1000)
    Timer1.Interval = 1000
       Timer1.Enabled = True 'Timer didn't work after it auto restart
 
    Timer2.Initialize("Timer2",1500)
End Sub

LogCat connected to: 0513b4fc
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main


Static storage paths aren't available from AID_SYSTEM


java.lang.Throwable
at android.os.Environment.throwIfSystem(Environment.java:637)
at android.os.Environment.getExternalStorageDirectory(Environment.java:316)
at com.sds.coolots.common.util.FileUtil.<clinit>(Unknown Source)
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.loadLibrary(Runtime.java:379)
at java.lang.System.loadLibrary(System.java:535)
at com.coolots.chaton.common.controller.EngineLoader.loadEngine(EngineLoader.java:94)
at com.sds.coolots.EngineInterface.getInstance(Unknown Source)
at com.sds.coolots.call.k.<init>(Unknown Source)
at com.sds.coolots.common.controller.PhoneManager.initPhoneStateMachine(Unknown Source)
at com.sds.coolots.common.controller.PhoneManager.init(Unknown Source)
at com.coolots.chaton.common.controller.VAppPhoneManager.init(VAppPhoneManager.java:141)
at com.coolots.chaton.CoolotsChatOn.onCreate(CoolotsChatOn.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)


at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Static storage paths aren't available from AID_SYSTEM
java.lang.Throwable
at android.os.Environment.throwIfSystem(Environment.java:637)
at android.os.Environment.getExternalStorageDirectory(Environment.java:316)
at com.sds.coolots.login.LoginManager.<clinit>(Unknown Source)
at com.coolots.chaton.common.controller.ChatOnPhoneManagerKR.initLoginManager(ChatOnPhoneManagerKR.java:80)
at com.sds.coolots.common.controller.PhoneManager.init(Unknown Source)
at com.coolots.chaton.common.controller.VAppPhoneManager.init(VAppPhoneManager.java:141)
at com.coolots.chaton.CoolotsChatOn.onCreate(CoolotsChatOn.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
** Service (s2) Create **
** Service (s2) Start **
S2 Service Start -- S1Enable : 0 S2Enable : 0
** Service (pushservice) Create **
** Service (pushservice) Start **
NBnum0
java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:452)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@421acc78 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)


at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
... 10 more
Caused by: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:452)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
... 14 more
** Service (pushservice) Create **


** Service (pushservice) Start **


NBnum0
java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:452)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@42195418 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
... 10 more
Caused by: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:452)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
... 14 more
 

Attachments

  • chbv10.zip
    32.5 KB · Views: 79
Last edited:
Upvote 0

AndrewChan0513

Member
Licensed User
I've added a lot of LOG to check what step it's doing..

20:21:07.171 I/B4A (12175): ~i:** Activity (main) Resume **
20:21:08.443 I/B4A (12175): ~i:** Service (s2) Create **
20:21:08.443 I/B4A (12175): S2 Service Create
20:21:08.453 I/B4A (12175): S2 Timer1 Initialized
20:21:08.453 I/B4A (12175): S2 Timer1 Enabled
20:21:08.453 I/B4A (12175): S2 Timer2 Initialized
20:21:08.453 I/B4A (12175): ~i:** Service (s2) Start **
20:21:08.453 I/B4A (12175): S2 Service Start -- S1Enable : 0 S2Enable : 1
20:21:08.453 I/B4A (12175): ~i:** Activity (main) Pause, UserClosed = true **
20:21:09.454 I/B4A (12175): 202109 S2 Timer1 Started
20:21:10.465 I/B4A (12175): 202110 S2 Timer1 Started
20:21:11.165 I/B4A (12175): ~i:** Activity (main) Create, isFirst = false **
20:21:11.235 I/B4A (12175): ~i:** Activity (main) Resume **
20:21:11.466 I/B4A (12175): 202111 S2 Timer1 Started
20:21:11.896 I/B4A (12175): ~i:** Service (pushservice) Start **
20:21:11.896 I/B4A (12175): 20:21:11 PushService Started --- Now NBnum=0
20:21:12.467 I/B4A (12175): 202112 S2 Timer1 Started
20:21:13.458 I/B4A (12175): 202113 S2 Timer1 Started
20:21:14.459 I/B4A (12175): 202114 S2 Timer1 Started
20:21:14.789 I/B4A (12175): ~i:** Service (s2) Start **
20:21:14.789 I/B4A (12175): S2 Service Start -- S1Enable : 0 S2Enable : 1
20:21:14.789 I/B4A (12175): ~i:** Activity (main) Pause, UserClosed = true **
20:21:15.460 I/B4A (12175): 202115 S2 Timer1 Started
20:21:16.461 I/B4A (12175): 202116 S2 Timer1 Started
20:21:17.462 I/B4A (12175): 202117 S2 Timer1 Started
20:21:18.463 I/B4A (12175): 202118 S2 Timer1 Started
20:21:19.463 I/B4A (12175): 202119 S2 Timer1 Started
20:21:20.464 I/B4A (12175): 202120 S2 Timer1 Started
20:21:21.465 I/B4A (12175): 202121 S2 Timer1 Started
20:21:22.476 I/B4A (12175): 202122 S2 Timer1 Started
20:21:23.467 I/B4A (12175): 202123 S2 Timer1 Started
20:21:24.468 I/B4A (12175): 202124 S2 Timer1 Started
20:21:25.469 I/B4A (12175): 202125 S2 Timer1 Started
20:21:26.470 I/B4A (12175): 202126 S2 Timer1 Started
20:21:27.471 I/B4A (12175): 202127 S2 Timer1 Started
20:21:28.472 I/B4A (12175): 202128 S2 Timer1 Started
20:21:29.473 I/B4A (12175): 202129 S2 Timer1 Started
20:21:30.474 I/B4A (12175): 202130 S2 Timer1 Started
20:21:31.475 I/B4A (12175): 202131 S2 Timer1 Started
20:21:32.486 I/B4A (12175): 202132 S2 Timer1 Started
20:21:33.487 I/B4A (12175): 202133 S2 Timer1 Started
20:21:34.478 I/B4A (12175): 202134 S2 Timer1 Started
20:21:35.479 I/B4A (12175): 202135 S2 Timer1 Started
20:21:36.480 I/B4A (12175): 202136 S2 Timer1 Started
20:21:37.481 I/B4A (12175): 202137 S2 Timer1 Started
20:21:38.482 I/B4A (12175): 202138 S2 Timer1 Started
20:21:39.483 I/B4A (12175): 202139 S2 Timer1 Started
20:21:40.484 I/B4A (12175): 202140 S2 Timer1 Started
20:21:41.495 I/B4A (12175): 202141 S2 Timer1 Started
20:21:42.496 I/B4A (12175): 202142 S2 Timer1 Started
20:21:43.497 I/B4A (12175): 202143 S2 Timer1 Started
20:21:44.488 I/B4A (12175): 202144 S2 Timer1 Started
20:21:50.213 I/B4A (15705): ~i:** Service (s2) Create **
20:21:50.213 I/B4A (15705): S2 Service Create
20:21:50.244 I/B4A (15705): S2 Timer1 Initialized
20:21:50.244 I/B4A (15705): S2 Timer1 Enabled
20:21:50.244 I/B4A (15705): S2 Timer2 Initialized
20:21:50.244 I/B4A (15705): ~i:** Service (s2) Start **
20:21:50.244 I/B4A (15705): S2 Service Start -- S1Enable : 0 S2Enable : 0
20:21:50.244 I/B4A (15705): ~i:** Service (pushservice) Create **
20:21:50.254 I/B4A (15705): 20:21:50 PushService Created
20:21:50.254 I/B4A (15705): ~i:** Service (pushservice) Start **
20:21:50.254 I/B4A (15705): 20:21:50 PushService Started --- Now NBnum=0
20:21:50.264 I/B4A (15705): ~e:java.lang.RuntimeException: Object should first be initialized (Intent).
20:21:50.264 I/B4A (15705): ~e: at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
20:21:50.264 I/B4A (15705): ~e: at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
20:21:50.264 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
20:21:50.264 I/B4A (15705): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:21:50.264 I/B4A (15705): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:21:50.264 I/B4A (15705): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
20:21:50.264 I/B4A (15705): ~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
20:21:50.264 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
20:21:50.264 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
20:21:50.264 I/B4A (15705): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
20:21:50.264 I/B4A (15705): ~e: at android.app.ActivityThread.access$2000(ActivityThread.java:151)
20:21:50.264 I/B4A (15705): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
20:21:50.264 I/B4A (15705): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
20:21:50.264 I/B4A (15705): ~e: at android.os.Looper.loop(Looper.java:137)
20:21:50.264 I/B4A (15705): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
20:21:50.264 I/B4A (15705): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:21:50.264 I/B4A (15705): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:21:50.264 I/B4A (15705): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
20:21:50.264 I/B4A (15705): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
20:21:50.264 I/B4A (15705): ~e: at dalvik.system.NativeStart.main(Native Method)
20:21:50.274 I/B4A (15705): ~e:java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@421abf58 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
20:21:50.274 I/B4A (15705): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
20:21:50.274 I/B4A (15705): ~e: at android.app.ActivityThread.access$2000(ActivityThread.java:151)
20:21:50.274 I/B4A (15705): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
20:21:50.274 I/B4A (15705): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
20:21:50.274 I/B4A (15705): ~e: at android.os.Looper.loop(Looper.java:137)
20:21:50.274 I/B4A (15705): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
20:21:50.274 I/B4A (15705): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:21:50.274 I/B4A (15705): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:21:50.274 I/B4A (15705): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
20:21:50.274 I/B4A (15705): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
20:21:50.274 I/B4A (15705): ~e: at dalvik.system.NativeStart.main(Native Method)
20:21:50.274 I/B4A (15705): ~e:Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
20:21:50.274 I/B4A (15705): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)
20:21:50.274 I/B4A (15705): ~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
20:21:50.274 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
20:21:50.274 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
20:21:50.274 I/B4A (15705): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
20:21:50.274 I/B4A (15705): ~e: ... 10 more
20:21:50.274 I/B4A (15705): ~e:Caused by: java.lang.RuntimeException: Object should first be initialized (Intent).
20:21:50.274 I/B4A (15705): ~e: at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
20:21:50.274 I/B4A (15705): ~e: at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
20:21:50.274 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
20:21:50.274 I/B4A (15705): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:21:50.274 I/B4A (15705): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:21:50.274 I/B4A (15705): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
20:21:50.274 I/B4A (15705): ~e: ... 14 more
20:27:03.689 I/B4A (16208): ~i:** Service (pushservice) Create **
20:27:03.689 I/B4A (16208): 20:27:03 PushService Created
20:27:03.689 I/B4A (16208): ~i:** Service (pushservice) Start **
20:27:03.699 I/B4A (16208): 20:27:03 PushService Started --- Now NBnum=0
20:27:03.699 I/B4A (16208): ~e:java.lang.RuntimeException: Object should first be initialized (Intent).
20:27:03.699 I/B4A (16208): ~e: at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
20:27:03.699 I/B4A (16208): ~e: at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
20:27:03.699 I/B4A (16208): ~e: at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
20:27:03.699 I/B4A (16208): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:27:03.699 I/B4A (16208): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:27:03.699 I/B4A (16208): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
20:27:03.699 I/B4A (16208): ~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
20:27:03.699 I/B4A (16208): ~e: at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
20:27:03.699 I/B4A (16208): ~e: at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
20:27:03.699 I/B4A (16208): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
20:27:03.699 I/B4A (16208): ~e: at android.app.ActivityThread.access$2000(ActivityThread.java:151)
20:27:03.699 I/B4A (16208): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
20:27:03.699 I/B4A (16208): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
20:27:03.699 I/B4A (16208): ~e: at android.os.Looper.loop(Looper.java:137)
20:27:03.699 I/B4A (16208): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
20:27:03.699 I/B4A (16208): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:27:03.699 I/B4A (16208): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:27:03.699 I/B4A (16208): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
20:27:03.699 I/B4A (16208): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
20:27:03.699 I/B4A (16208): ~e: at dalvik.system.NativeStart.main(Native Method)
20:27:03.709 I/B4A (16208): ~e:java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@42190410 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
20:27:03.709 I/B4A (16208): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
20:27:03.709 I/B4A (16208): ~e: at android.app.ActivityThread.access$2000(ActivityThread.java:151)
20:27:03.709 I/B4A (16208): ~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
20:27:03.709 I/B4A (16208): ~e: at android.os.Handler.dispatchMessage(Handler.java:99)
20:27:03.709 I/B4A (16208): ~e: at android.os.Looper.loop(Looper.java:137)
20:27:03.709 I/B4A (16208): ~e: at android.app.ActivityThread.main(ActivityThread.java:5293)
20:27:03.709 I/B4A (16208): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:27:03.709 I/B4A (16208): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:27:03.709 I/B4A (16208): ~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
20:27:03.709 I/B4A (16208): ~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
20:27:03.709 I/B4A (16208): ~e: at dalvik.system.NativeStart.main(Native Method)
20:27:03.709 I/B4A (16208): ~e:Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
20:27:03.709 I/B4A (16208): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)
20:27:03.709 I/B4A (16208): ~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
20:27:03.709 I/B4A (16208): ~e: at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
20:27:03.709 I/B4A (16208): ~e: at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
20:27:03.709 I/B4A (16208): ~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
20:27:03.709 I/B4A (16208): ~e: ... 10 more
20:27:03.709 I/B4A (16208): ~e:Caused by: java.lang.RuntimeException: Object should first be initialized (Intent).
20:27:03.709 I/B4A (16208): ~e: at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
20:27:03.709 I/B4A (16208): ~e: at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
20:27:03.709 I/B4A (16208): ~e: at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
20:27:03.709 I/B4A (16208): ~e: at java.lang.reflect.Method.invokeNative(Native Method)
20:27:03.709 I/B4A (16208): ~e: at java.lang.reflect.Method.invoke(Method.java:511)
20:27:03.709 I/B4A (16208): ~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
20:27:03.709 I/B4A (16208): ~e: ... 14 more

The problem is in here :
20:21:44.488 I/B4A (12175): 202144 S2 Timer1 Started
20:21:50.213 I/B4A (15705): ~i:** Service (s2) Create **
20:21:50.213 I/B4A (15705): S2 Service Create
20:21:50.244 I/B4A (15705): S2 Timer1 Initialized
20:21:50.244 I/B4A (15705): S2 Timer1 Enabled
20:21:50.244 I/B4A (15705): S2 Timer2 Initialized
20:21:50.244 I/B4A (15705): ~i:** Service (s2) Start **
20:21:50.244 I/B4A (15705): S2 Service Start -- S1Enable : 0 S2Enable : 0

The timer is starting from 20:21:09 to 20:21:44 !!
But 20:21:45 to 20:21:49 what it is doing - -? Disappeared ??
20:21:50 Why the service will suddenly Create again?

20:21:50.244 I/B4A (15705): S2 Timer1 Enabled
It have already enabled the timer1
But after Service start.. Timer1 is disappeared !!


Help = =!!
 
Upvote 0

AndrewChan0513

Member
Licensed User
Why aren't you reading the logs in the IDE?

Can you post the code in Service_Start?

In IDE is mean in the Basic4android right hand side's Log ?
- -! Is not the same with B4A Log Viewer ?

B4X:
Sub Service_Start(startingIntent As Intent)
Log("S2 Service Start" & " -- S1Enable : " & s1.S1Enable & " S2Enable : " & S2Enable)
End Sub

There is nothing in Service_Start = =

The main point is...
Why the service(s2) will got killed ? by who ? Itself ? Android ? But I've already set sticky!
 
Last edited:
Upvote 0

AndrewChan0513

Member
Licensed User
I found it !!
http://developer.android.com/reference/android/app/Service.html

intSTART_REDELIVER_INTENTConstant to return from onStartCommand(Intent, int, int): if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)), then it will be scheduled for a restart and the last delivered Intent re-delivered to it again via onStartCommand(Intent, int, int).
intSTART_STICKYConstant to return from onStartCommand(Intent, int, int): if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)), then leave it in the started state but don't retain this delivered intent.

Is there have a way I can use START_REDELIVER_INTENT in basic4android?

I don't know why the service got killed.
But START_STICKY will help me to restart it again..
But the intent didn't return to it again - -.
So I got a error "Object should first be initialized (Intent)."

LogCat connected to: 0513b4fc
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main


Static storage paths aren't available from AID_SYSTEM


java.lang.Throwable
at android.os.Environment.throwIfSystem(Environment.java:637)
at android.os.Environment.getExternalStorageDirectory(Environment.java:316)
at com.sds.coolots.common.util.FileUtil.<clinit>(Unknown Source)
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.loadLibrary(Runtime.java:379)
at java.lang.System.loadLibrary(System.java:535)
at com.coolots.chaton.common.controller.EngineLoader.loadEngine(EngineLoader.java:94)
at com.sds.coolots.EngineInterface.getInstance(Unknown Source)
at com.sds.coolots.call.k.<init>(Unknown Source)
at com.sds.coolots.common.controller.PhoneManager.initPhoneStateMachine(Unknown Source)
at com.sds.coolots.common.controller.PhoneManager.init(Unknown Source)
at com.coolots.chaton.common.controller.VAppPhoneManager.init(VAppPhoneManager.java:141)
at com.coolots.chaton.CoolotsChatOn.onCreate(CoolotsChatOn.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Static storage paths aren't available from AID_SYSTEM
java.lang.Throwable
at android.os.Environment.throwIfSystem(Environment.java:637)
at android.os.Environment.getExternalStorageDirectory(Environment.java:316)
at com.sds.coolots.login.LoginManager.<clinit>(Unknown Source)
at com.coolots.chaton.common.controller.ChatOnPhoneManagerKR.initLoginManager(ChatOnPhoneManagerKR.java:80)
at com.sds.coolots.common.controller.PhoneManager.init(Unknown Source)
at com.coolots.chaton.common.controller.VAppPhoneManager.init(VAppPhoneManager.java:141)
at com.coolots.chaton.CoolotsChatOn.onCreate(CoolotsChatOn.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **


** Activity (main) Resume **


** Service (pushservice) Create **


21:25:01 PushService Created


** Service (pushservice) Start **
21:25:01 PushService Started --- Now NBnum=0
** Service (pushservice) Start **


21:25:02 PushService Started --- Now NBnum=0


** Service (httputils2service) Create **
** Service (httputils2service) Start **
** Service (s2) Create **


S2 Service Create ___ S2Enable:1


S2 Timer1 Initialized
S2 Timer1 Enabled
S2 Timer2 Initialized
** Service (s2) Start **
S2 Service Start -- S1Enable : 0 S2Enable : 1
** Activity (main) Pause, UserClosed = true **
212505 S2 Timer1 Started


212506 S2 Timer1 Started


212507 S2 Timer1 Started


212508 S2 Timer1 Started


212509 S2 Timer1 Started


212510 S2 Timer1 Started


212511 S2 Timer1 Started


212512 S2 Timer1 Started


212513 S2 Timer1 Started


212514 S2 Timer1 Started


212515 S2 Timer1 Started


212516 S2 Timer1 Started


212517 S2 Timer1 Started


212518 S2 Timer1 Started


Static storage paths aren't available from AID_SYSTEM


java.lang.Throwable
at android.os.Environment.throwIfSystem(Environment.java:637)
at android.os.Environment.getExternalStorageDirectory(Environment.java:316)
at com.sds.coolots.common.util.FileUtil.<clinit>(Unknown Source)
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.loadLibrary(Runtime.java:379)
at java.lang.System.loadLibrary(System.java:535)
at com.coolots.chaton.common.controller.EngineLoader.loadEngine(EngineLoader.java:94)
at com.sds.coolots.EngineInterface.getInstance(Unknown Source)
at com.sds.coolots.call.k.<init>(Unknown Source)
at com.sds.coolots.common.controller.PhoneManager.initPhoneStateMachine(Unknown Source)
at com.sds.coolots.common.controller.PhoneManager.init(Unknown Source)
at com.coolots.chaton.common.controller.VAppPhoneManager.init(VAppPhoneManager.java:141)
at com.coolots.chaton.CoolotsChatOn.onCreate(CoolotsChatOn.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)


at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Static storage paths aren't available from AID_SYSTEM
java.lang.Throwable
at android.os.Environment.throwIfSystem(Environment.java:637)
at android.os.Environment.getExternalStorageDirectory(Environment.java:316)
at com.sds.coolots.login.LoginManager.<clinit>(Unknown Source)
at com.coolots.chaton.common.controller.ChatOnPhoneManagerKR.initLoginManager(ChatOnPhoneManagerKR.java:80)
at com.sds.coolots.common.controller.PhoneManager.init(Unknown Source)
at com.coolots.chaton.common.controller.VAppPhoneManager.init(VAppPhoneManager.java:141)
at com.coolots.chaton.CoolotsChatOn.onCreate(CoolotsChatOn.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
212519 S2 Timer1 Started


212520 S2 Timer1 Started


212521 S2 Timer1 Started


212522 S2 Timer1 Started


212523 S2 Timer1 Started


212524 S2 Timer1 Started


212525 S2 Timer1 Started


212526 S2 Timer1 Started


212527 S2 Timer1 Started


212528 S2 Timer1 Started


212529 S2 Timer1 Started


212530 S2 Timer1 Started


212531 S2 Timer1 Started


212532 S2 Timer1 Started


212533 S2 Timer1 Started


212534 S2 Timer1 Started


212535 S2 Timer1 Started


212536 S2 Timer1 Started


212537 S2 Timer1 Started


212538 S2 Timer1 Started


212539 S2 Timer1 Started


212540 S2 Timer1 Started


212541 S2 Timer1 Started


212542 S2 Timer1 Started


212543 S2 Timer1 Started


212544 S2 Timer1 Started


212545 S2 Timer1 Started


212546 S2 Timer1 Started


212547 S2 Timer1 Started


212548 S2 Timer1 Started


212549 S2 Timer1 Started


212550 S2 Timer1 Started


212551 S2 Timer1 Started


212552 S2 Timer1 Started


212553 S2 Timer1 Started


212554 S2 Timer1 Started


212555 S2 Timer1 Started


212556 S2 Timer1 Started


212557 S2 Timer1 Started


212558 S2 Timer1 Started


212559 S2 Timer1 Started


212600 S2 Timer1 Started
212601 S2 Timer1 Started
212602 S2 Timer1 Started
212603 S2 Timer1 Started


212604 S2 Timer1 Started


212605 S2 Timer1 Started


212606 S2 Timer1 Started


212607 S2 Timer1 Started


212608 S2 Timer1 Started


212609 S2 Timer1 Started


212610 S2 Timer1 Started


212611 S2 Timer1 Started
212612 S2 Timer1 Started


212613 S2 Timer1 Started


212614 S2 Timer1 Started


212615 S2 Timer1 Started
212616 S2 Timer1 Started


212617 S2 Timer1 Started


212618 S2 Timer1 Started


212619 S2 Timer1 Started


212620 S2 Timer1 Started


212621 S2 Timer1 Started


212622 S2 Timer1 Started


212623 S2 Timer1 Started


212624 S2 Timer1 Started


212625 S2 Timer1 Started


212626 S2 Timer1 Started


212627 S2 Timer1 Started


212628 S2 Timer1 Started


212629 S2 Timer1 Started


212630 S2 Timer1 Started


212631 S2 Timer1 Started


212632 S2 Timer1 Started


212633 S2 Timer1 Started


212634 S2 Timer1 Started


212635 S2 Timer1 Started


212636 S2 Timer1 Started


212637 S2 Timer1 Started


212638 S2 Timer1 Started


212639 S2 Timer1 Started


212640 S2 Timer1 Started


212641 S2 Timer1 Started


212642 S2 Timer1 Started


212643 S2 Timer1 Started


212644 S2 Timer1 Started


212645 S2 Timer1 Started


212646 S2 Timer1 Started


212647 S2 Timer1 Started


212648 S2 Timer1 Started


212649 S2 Timer1 Started


212650 S2 Timer1 Started


212651 S2 Timer1 Started


212652 S2 Timer1 Started


212653 S2 Timer1 Started


212654 S2 Timer1 Started


212655 S2 Timer1 Started


212656 S2 Timer1 Started


212657 S2 Timer1 Started


212658 S2 Timer1 Started


212659 S2 Timer1 Started


212700 S2 Timer1 Started


212701 S2 Timer1 Started


212702 S2 Timer1 Started


212703 S2 Timer1 Started


212704 S2 Timer1 Started


212705 S2 Timer1 Started


212706 S2 Timer1 Started


212707 S2 Timer1 Started


212708 S2 Timer1 Started


212709 S2 Timer1 Started


212710 S2 Timer1 Started


212711 S2 Timer1 Started


212712 S2 Timer1 Started


212713 S2 Timer1 Started


212714 S2 Timer1 Started


212715 S2 Timer1 Started


212716 S2 Timer1 Started


212717 S2 Timer1 Started


212718 S2 Timer1 Started


212719 S2 Timer1 Started


212720 S2 Timer1 Started


212721 S2 Timer1 Started


212722 S2 Timer1 Started


212723 S2 Timer1 Started


212724 S2 Timer1 Started


212725 S2 Timer1 Started


212726 S2 Timer1 Started


212727 S2 Timer1 Started


212728 S2 Timer1 Started


212729 S2 Timer1 Started


212730 S2 Timer1 Started


212731 S2 Timer1 Started


212732 S2 Timer1 Started


212733 S2 Timer1 Started


212734 S2 Timer1 Started


212735 S2 Timer1 Started


212736 S2 Timer1 Started


212737 S2 Timer1 Started


212738 S2 Timer1 Started


212739 S2 Timer1 Started


212740 S2 Timer1 Started


212741 S2 Timer1 Started


212742 S2 Timer1 Started


212743 S2 Timer1 Started


212744 S2 Timer1 Started


212745 S2 Timer1 Started


212746 S2 Timer1 Started


212747 S2 Timer1 Started


212748 S2 Timer1 Started


212749 S2 Timer1 Started


212750 S2 Timer1 Started


212751 S2 Timer1 Started


212752 S2 Timer1 Started


212753 S2 Timer1 Started


212754 S2 Timer1 Started


212755 S2 Timer1 Started


212756 S2 Timer1 Started


212757 S2 Timer1 Started


212758 S2 Timer1 Started


212759 S2 Timer1 Started


212800 S2 Timer1 Started


212801 S2 Timer1 Started


212802 S2 Timer1 Started


212803 S2 Timer1 Started


212804 S2 Timer1 Started


212805 S2 Timer1 Started


212806 S2 Timer1 Started


212807 S2 Timer1 Started


212808 S2 Timer1 Started


212809 S2 Timer1 Started


212810 S2 Timer1 Started


212811 S2 Timer1 Started


212812 S2 Timer1 Started


212813 S2 Timer1 Started


212814 S2 Timer1 Started


212815 S2 Timer1 Started


212816 S2 Timer1 Started


212817 S2 Timer1 Started


212818 S2 Timer1 Started


212819 S2 Timer1 Started


212820 S2 Timer1 Started


212821 S2 Timer1 Started


212822 S2 Timer1 Started


212823 S2 Timer1 Started


212824 S2 Timer1 Started


212825 S2 Timer1 Started


212826 S2 Timer1 Started


212827 S2 Timer1 Started


212828 S2 Timer1 Started


212829 S2 Timer1 Started


212830 S2 Timer1 Started


212831 S2 Timer1 Started


212832 S2 Timer1 Started


212833 S2 Timer1 Started


212834 S2 Timer1 Started


212835 S2 Timer1 Started


212836 S2 Timer1 Started


212837 S2 Timer1 Started


212838 S2 Timer1 Started


212839 S2 Timer1 Started


212840 S2 Timer1 Started


212841 S2 Timer1 Started


212842 S2 Timer1 Started


212843 S2 Timer1 Started


212844 S2 Timer1 Started


212845 S2 Timer1 Started


212846 S2 Timer1 Started


212847 S2 Timer1 Started


212848 S2 Timer1 Started


212849 S2 Timer1 Started


212850 S2 Timer1 Started


212851 S2 Timer1 Started


212852 S2 Timer1 Started


212853 S2 Timer1 Started


212854 S2 Timer1 Started


212855 S2 Timer1 Started


212856 S2 Timer1 Started


212857 S2 Timer1 Started


212858 S2 Timer1 Started


212859 S2 Timer1 Started


212900 S2 Timer1 Started


212901 S2 Timer1 Started


212902 S2 Timer1 Started


212903 S2 Timer1 Started


212904 S2 Timer1 Started


212905 S2 Timer1 Started


212906 S2 Timer1 Started


212907 S2 Timer1 Started


212908 S2 Timer1 Started


212909 S2 Timer1 Started


212910 S2 Timer1 Started


212911 S2 Timer1 Started


212912 S2 Timer1 Started


212913 S2 Timer1 Started


212914 S2 Timer1 Started


212915 S2 Timer1 Started


212916 S2 Timer1 Started


212917 S2 Timer1 Started


212918 S2 Timer1 Started


212919 S2 Timer1 Started


212920 S2 Timer1 Started


212921 S2 Timer1 Started


212922 S2 Timer1 Started


212923 S2 Timer1 Started


212924 S2 Timer1 Started


212925 S2 Timer1 Started


212926 S2 Timer1 Started


212927 S2 Timer1 Started


212928 S2 Timer1 Started


212929 S2 Timer1 Started


212930 S2 Timer1 Started


212931 S2 Timer1 Started


212932 S2 Timer1 Started


212933 S2 Timer1 Started


212934 S2 Timer1 Started


212935 S2 Timer1 Started


212936 S2 Timer1 Started


212937 S2 Timer1 Started


212938 S2 Timer1 Started


212939 S2 Timer1 Started


212940 S2 Timer1 Started


212941 S2 Timer1 Started


212942 S2 Timer1 Started


212943 S2 Timer1 Started


212944 S2 Timer1 Started


212945 S2 Timer1 Started


212946 S2 Timer1 Started


212947 S2 Timer1 Started


212948 S2 Timer1 Started


212949 S2 Timer1 Started


212950 S2 Timer1 Started


212951 S2 Timer1 Started


212952 S2 Timer1 Started


212953 S2 Timer1 Started


212954 S2 Timer1 Started


212955 S2 Timer1 Started


212956 S2 Timer1 Started


212957 S2 Timer1 Started


212958 S2 Timer1 Started


212959 S2 Timer1 Started


213000 S2 Timer1 Started


213001 S2 Timer1 Started


213002 S2 Timer1 Started


213003 S2 Timer1 Started


213004 S2 Timer1 Started


213005 S2 Timer1 Started


213006 S2 Timer1 Started


213007 S2 Timer1 Started


213008 S2 Timer1 Started


213009 S2 Timer1 Started


213010 S2 Timer1 Started


213011 S2 Timer1 Started


213012 S2 Timer1 Started


213013 S2 Timer1 Started


213014 S2 Timer1 Started


213015 S2 Timer1 Started


213016 S2 Timer1 Started


213017 S2 Timer1 Started


213018 S2 Timer1 Started


213019 S2 Timer1 Started


213020 S2 Timer1 Started


213021 S2 Timer1 Started


213022 S2 Timer1 Started


213023 S2 Timer1 Started


213024 S2 Timer1 Started


213025 S2 Timer1 Started


213026 S2 Timer1 Started


213027 S2 Timer1 Started


213028 S2 Timer1 Started


213029 S2 Timer1 Started


213030 S2 Timer1 Started


213031 S2 Timer1 Started


213032 S2 Timer1 Started


213033 S2 Timer1 Started


213034 S2 Timer1 Started


213035 S2 Timer1 Started


213036 S2 Timer1 Started


213037 S2 Timer1 Started


213038 S2 Timer1 Started


213039 S2 Timer1 Started


213040 S2 Timer1 Started


213041 S2 Timer1 Started


213042 S2 Timer1 Started


213043 S2 Timer1 Started


213044 S2 Timer1 Started


213045 S2 Timer1 Started


213046 S2 Timer1 Started


213047 S2 Timer1 Started


213048 S2 Timer1 Started


213049 S2 Timer1 Started


213050 S2 Timer1 Started


213051 S2 Timer1 Started


213052 S2 Timer1 Started


213053 S2 Timer1 Started


213054 S2 Timer1 Started


213055 S2 Timer1 Started


213056 S2 Timer1 Started


213057 S2 Timer1 Started


213058 S2 Timer1 Started


213059 S2 Timer1 Started


213100 S2 Timer1 Started


213101 S2 Timer1 Started


213102 S2 Timer1 Started


213103 S2 Timer1 Started


213104 S2 Timer1 Started


213105 S2 Timer1 Started


213106 S2 Timer1 Started


213107 S2 Timer1 Started


213108 S2 Timer1 Started


213109 S2 Timer1 Started


213110 S2 Timer1 Started


213111 S2 Timer1 Started


213112 S2 Timer1 Started


213113 S2 Timer1 Started


213114 S2 Timer1 Started


213115 S2 Timer1 Started


213116 S2 Timer1 Started


213117 S2 Timer1 Started


213118 S2 Timer1 Started


213119 S2 Timer1 Started


213120 S2 Timer1 Started


213121 S2 Timer1 Started


213122 S2 Timer1 Started


213123 S2 Timer1 Started


213124 S2 Timer1 Started


213125 S2 Timer1 Started


213126 S2 Timer1 Started


213127 S2 Timer1 Started


213128 S2 Timer1 Started


213129 S2 Timer1 Started


213130 S2 Timer1 Started


213131 S2 Timer1 Started


213132 S2 Timer1 Started


213133 S2 Timer1 Started


213134 S2 Timer1 Started


213135 S2 Timer1 Started


213136 S2 Timer1 Started


213137 S2 Timer1 Started


213138 S2 Timer1 Started


213139 S2 Timer1 Started


213140 S2 Timer1 Started


213141 S2 Timer1 Started


213142 S2 Timer1 Started


213143 S2 Timer1 Started


213144 S2 Timer1 Started


213145 S2 Timer1 Started


213146 S2 Timer1 Started


213147 S2 Timer1 Started


213148 S2 Timer1 Started


213149 S2 Timer1 Started


213150 S2 Timer1 Started


213151 S2 Timer1 Started


213152 S2 Timer1 Started


213153 S2 Timer1 Started


213154 S2 Timer1 Started


213155 S2 Timer1 Started


213156 S2 Timer1 Started


213157 S2 Timer1 Started


213158 S2 Timer1 Started


213159 S2 Timer1 Started


213200 S2 Timer1 Started


213201 S2 Timer1 Started


213202 S2 Timer1 Started


213203 S2 Timer1 Started


213204 S2 Timer1 Started


213205 S2 Timer1 Started


213206 S2 Timer1 Started


213207 S2 Timer1 Started


213208 S2 Timer1 Started


213209 S2 Timer1 Started


213210 S2 Timer1 Started


213211 S2 Timer1 Started


213212 S2 Timer1 Started


213213 S2 Timer1 Started


213214 S2 Timer1 Started


213215 S2 Timer1 Started


213216 S2 Timer1 Started


213217 S2 Timer1 Started


213218 S2 Timer1 Started


213219 S2 Timer1 Started


213220 S2 Timer1 Started


213221 S2 Timer1 Started


213222 S2 Timer1 Started


213223 S2 Timer1 Started


213224 S2 Timer1 Started


213225 S2 Timer1 Started


213226 S2 Timer1 Started


213227 S2 Timer1 Started


213228 S2 Timer1 Started


213229 S2 Timer1 Started


213230 S2 Timer1 Started


213231 S2 Timer1 Started


213232 S2 Timer1 Started


213233 S2 Timer1 Started


213234 S2 Timer1 Started


213235 S2 Timer1 Started


213236 S2 Timer1 Started


213237 S2 Timer1 Started


213239 S2 Timer1 Started


213240 S2 Timer1 Started


213241 S2 Timer1 Started


213242 S2 Timer1 Started


213243 S2 Timer1 Started


213244 S2 Timer1 Started


213245 S2 Timer1 Started


213246 S2 Timer1 Started


213247 S2 Timer1 Started


213248 S2 Timer1 Started


213249 S2 Timer1 Started


213250 S2 Timer1 Started


213251 S2 Timer1 Started


213252 S2 Timer1 Started


213253 S2 Timer1 Started


213254 S2 Timer1 Started


213255 S2 Timer1 Started


213256 S2 Timer1 Started


213257 S2 Timer1 Started


213258 S2 Timer1 Started


213259 S2 Timer1 Started


213300 S2 Timer1 Started


213301 S2 Timer1 Started


213302 S2 Timer1 Started


213303 S2 Timer1 Started


213304 S2 Timer1 Started


213305 S2 Timer1 Started


213306 S2 Timer1 Started


213307 S2 Timer1 Started


213308 S2 Timer1 Started


213309 S2 Timer1 Started


213310 S2 Timer1 Started


213311 S2 Timer1 Started


213312 S2 Timer1 Started


213313 S2 Timer1 Started


213314 S2 Timer1 Started


213315 S2 Timer1 Started


213316 S2 Timer1 Started


213317 S2 Timer1 Started


213318 S2 Timer1 Started


213319 S2 Timer1 Started


213320 S2 Timer1 Started


213321 S2 Timer1 Started


213322 S2 Timer1 Started


213323 S2 Timer1 Started


213324 S2 Timer1 Started


213325 S2 Timer1 Started


213326 S2 Timer1 Started


213327 S2 Timer1 Started


213328 S2 Timer1 Started


213329 S2 Timer1 Started


213330 S2 Timer1 Started


213331 S2 Timer1 Started


213332 S2 Timer1 Started


213333 S2 Timer1 Started


213334 S2 Timer1 Started


213335 S2 Timer1 Started


213336 S2 Timer1 Started


213337 S2 Timer1 Started


213338 S2 Timer1 Started


213339 S2 Timer1 Started


213340 S2 Timer1 Started


213341 S2 Timer1 Started


213342 S2 Timer1 Started


213343 S2 Timer1 Started


213344 S2 Timer1 Started


213345 S2 Timer1 Started


213346 S2 Timer1 Started


213347 S2 Timer1 Started


213348 S2 Timer1 Started


213349 S2 Timer1 Started


213350 S2 Timer1 Started


213351 S2 Timer1 Started


213352 S2 Timer1 Started


213353 S2 Timer1 Started


213354 S2 Timer1 Started


213355 S2 Timer1 Started


213356 S2 Timer1 Started


213357 S2 Timer1 Started


213358 S2 Timer1 Started


213359 S2 Timer1 Started


213400 S2 Timer1 Started


213401 S2 Timer1 Started


213402 S2 Timer1 Started


213403 S2 Timer1 Started


213404 S2 Timer1 Started


213405 S2 Timer1 Started


213406 S2 Timer1 Started


213407 S2 Timer1 Started


213408 S2 Timer1 Started


213409 S2 Timer1 Started


213410 S2 Timer1 Started


213411 S2 Timer1 Started


213412 S2 Timer1 Started


213413 S2 Timer1 Started


213414 S2 Timer1 Started


213415 S2 Timer1 Started


213416 S2 Timer1 Started


213417 S2 Timer1 Started


213418 S2 Timer1 Started


213419 S2 Timer1 Started


213420 S2 Timer1 Started


213421 S2 Timer1 Started


213422 S2 Timer1 Started


213423 S2 Timer1 Started


213424 S2 Timer1 Started


213425 S2 Timer1 Started


213426 S2 Timer1 Started


213427 S2 Timer1 Started


213428 S2 Timer1 Started


213429 S2 Timer1 Started


213430 S2 Timer1 Started


213431 S2 Timer1 Started


213432 S2 Timer1 Started


213433 S2 Timer1 Started


213434 S2 Timer1 Started


213435 S2 Timer1 Started


213436 S2 Timer1 Started


213437 S2 Timer1 Started


213438 S2 Timer1 Started


213439 S2 Timer1 Started


213440 S2 Timer1 Started


213441 S2 Timer1 Started


213442 S2 Timer1 Started


213443 S2 Timer1 Started


213444 S2 Timer1 Started


213445 S2 Timer1 Started


213446 S2 Timer1 Started


213447 S2 Timer1 Started


213448 S2 Timer1 Started


213449 S2 Timer1 Started


213450 S2 Timer1 Started


213451 S2 Timer1 Started


213452 S2 Timer1 Started


213453 S2 Timer1 Started


213454 S2 Timer1 Started


213455 S2 Timer1 Started


213456 S2 Timer1 Started


213457 S2 Timer1 Started


213458 S2 Timer1 Started


213459 S2 Timer1 Started


213500 S2 Timer1 Started


213501 S2 Timer1 Started


213502 S2 Timer1 Started


213503 S2 Timer1 Started


213504 S2 Timer1 Started


213505 S2 Timer1 Started


213506 S2 Timer1 Started


213507 S2 Timer1 Started


213508 S2 Timer1 Started


213509 S2 Timer1 Started


213510 S2 Timer1 Started


213511 S2 Timer1 Started


213512 S2 Timer1 Started


213513 S2 Timer1 Started


213514 S2 Timer1 Started


213515 S2 Timer1 Started


213516 S2 Timer1 Started


213517 S2 Timer1 Started


213518 S2 Timer1 Started


213519 S2 Timer1 Started


213520 S2 Timer1 Started


213521 S2 Timer1 Started


213522 S2 Timer1 Started


213523 S2 Timer1 Started


213524 S2 Timer1 Started


213525 S2 Timer1 Started


213526 S2 Timer1 Started


213527 S2 Timer1 Started


213528 S2 Timer1 Started


213529 S2 Timer1 Started


213530 S2 Timer1 Started


213531 S2 Timer1 Started


213532 S2 Timer1 Started


213533 S2 Timer1 Started


213534 S2 Timer1 Started


213535 S2 Timer1 Started


213536 S2 Timer1 Started


213537 S2 Timer1 Started


213538 S2 Timer1 Started


213539 S2 Timer1 Started


213540 S2 Timer1 Started


213541 S2 Timer1 Started


213542 S2 Timer1 Started


213543 S2 Timer1 Started


213544 S2 Timer1 Started


213545 S2 Timer1 Started


213546 S2 Timer1 Started


213547 S2 Timer1 Started


213548 S2 Timer1 Started


213549 S2 Timer1 Started


213550 S2 Timer1 Started


213551 S2 Timer1 Started


213552 S2 Timer1 Started


213553 S2 Timer1 Started


213554 S2 Timer1 Started


213555 S2 Timer1 Started


213556 S2 Timer1 Started


213557 S2 Timer1 Started


213558 S2 Timer1 Started


213559 S2 Timer1 Started


213600 S2 Timer1 Started


213601 S2 Timer1 Started


213602 S2 Timer1 Started


213603 S2 Timer1 Started


213604 S2 Timer1 Started


213605 S2 Timer1 Started


213606 S2 Timer1 Started


213607 S2 Timer1 Started


213608 S2 Timer1 Started


213609 S2 Timer1 Started


213610 S2 Timer1 Started


213611 S2 Timer1 Started


213612 S2 Timer1 Started


213613 S2 Timer1 Started


213614 S2 Timer1 Started


213615 S2 Timer1 Started


213616 S2 Timer1 Started


213617 S2 Timer1 Started


213618 S2 Timer1 Started


213619 S2 Timer1 Started


213620 S2 Timer1 Started


213621 S2 Timer1 Started


213622 S2 Timer1 Started


213623 S2 Timer1 Started


213624 S2 Timer1 Started


213625 S2 Timer1 Started


213626 S2 Timer1 Started


213627 S2 Timer1 Started


213628 S2 Timer1 Started


213629 S2 Timer1 Started


213630 S2 Timer1 Started


213631 S2 Timer1 Started


213632 S2 Timer1 Started


213633 S2 Timer1 Started


213634 S2 Timer1 Started


213635 S2 Timer1 Started


213636 S2 Timer1 Started


213637 S2 Timer1 Started


** Service (s2) Create **


S2 Service Create ___ S2Enable:0


S2 Timer1 Initialized
S2 Timer1 Enabled
S2 Timer2 Initialized
** Service (s2) Start **
S2 Service Start -- S1Enable : 0 S2Enable : 0
** Service (pushservice) Create **
21:36:42 PushService Created
** Service (pushservice) Start **
21:36:42 PushService Started --- Now NBnum=0
java.lang.RuntimeException: Object should first be initialized (Intent).


at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@421afc40 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
... 10 more
Caused by: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
... 14 more
** Service (pushservice) Create **


21:37:42 PushService Created


** Service (pushservice) Start **
21:37:42 PushService Started --- Now NBnum=0
java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Unable to start service com.andrewchan.smsforbotv2.pushservice@42197b20 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2756)
at android.app.ActivityThread.access$2000(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:201)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at com.andrewchan.smsforbotv2.pushservice.handleStart(pushservice.java:68)
at com.andrewchan.smsforbotv2.pushservice.onStartCommand(pushservice.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2739)
... 10 more
Caused by: java.lang.RuntimeException: Object should first be initialized (Intent).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
... 14 more
 
Upvote 0

Erel

Administrator
Staff member
Licensed User
You can see that there was a crash in Service_Start in a call to Intent.Action:

20:21:50.264 I/B4A (15705): ~e: at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
20:21:50.264 I/B4A (15705): ~e: at anywheresoftware.b4a.objects.IntentWrapper.getAction(IntentWrapper.java:56)
20:21:50.264 I/B4A (15705): ~e: at com.andrewchan.smsforbotv2.pushservice._service_start(pushservice.java:462)
 
Upvote 0
Top