Installing file.
PackageAdded: package:b4a.example
Copying updated assets files (300)
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (kioskservice) Create **
** Service (kioskservice) Start **
---- AppUpdating.ReadWebVN
---- AppUpdating.ReadCurVN
Current Version: 1.00
** Service (httputils2service) Create **
** Service (httputils2service) Start **
---- AppUpdating.JobDone --
JobName = JobWebVNonly, Success = true
Read while in JobWebVNonly: ver=1.01
Web version number: 1.01
---- AppUpdating.DownloadApk
---- AppUpdating.JobDone --
JobName = JobApkDownload, Success = true
-- JobApkDownload
newer apk version downloaded and ready to install
---- AppUpdating.InstallApk
user asked to install newer apk
Unexpected event (missing RaiseSynchronousEvents): update_updatecomplete
Check the unfiltered logs for the full stack trace.
** Service (kioskservice) Destroy **
** Activity (main) Pause, UserClosed = false **
** Service (reboot) Create **
** Service (reboot) Start **
Reboot Service Start
Error occurred on line: 20 (Reboot)
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at b4a.example.reboot._service_start(reboot.java:159)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:337)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at b4a.example.reboot.handleStart(reboot.java:95)
at b4a.example.reboot.onStartCommand(reboot.java:69)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3431)
at android.app.ActivityThread.access$2200(ActivityThread.java:181)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1573)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6126)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Here's my service_start code:
Line 20 refers to my If Statement, StartingIntent.getData being null i believe...
Sub Service_Start (StartingIntent As Intent)
Log("Reboot Service Start")
If (StartingIntent.GetData = "package:b4a.example") Then
Log("Inside Starting Intent")
StartServiceAt(Main,DateTime.Now + 1000,True)
Else
Log("Manifest Package:"&StartingIntent.GetData)
End If
End Sub
Here's my manifest code:
AddReceiverText(Reboot,
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" />
</intent-filter>)