Hi!
I have created a service named start:
If I install the service everything works.
Then I had the need to hide the icon from the app list,
I made the change with the following code in the manifest
with this change, the service is not listed in the background processes
and therefore does not work.
I also tried to enter this code in the manifest
But return this error
At line 15 there is
What do you suggest?
I have created a service named start:
B4X:
'Activity Main
Sub Activity_Create(FirstTime As Boolean)
StartService(start)
Activity.Finish
End Sub
B4X:
'Module Service
Sub Service_Start (StartingIntent As Intent)
StartServiceAt("", DateTime.Now + 0.1 * DateTime.TicksPerMinute, False)
End Sub
...
Then I had the need to hide the icon from the app list,
I made the change with the following code in the manifest
B4X:
'Manifest
AddReplacement(android.intent.action.MAIN, unused_action)
and therefore does not work.
I also tried to enter this code in the manifest
B4X:
'Manifest
AddReplacement(android.intent.action.MAIN, unused_action)
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
B4X:
Parsing code. 0.00
Compiling code. Error
Error parsing manifest script:
Line = 15, Word = <
Command expected.
B4X:
<intent-filter>
...