hello , im using a library for lockscreen :http://www.b4x.com/android/forum/th...n-lockscreen-with-just-5-lines-of-code.43327/
wish has a service called "LockScreenService" , here is the manifest:
the problem is the service stays running even if i exit my app , and it has no function to stop its own service therefore i would like to stop it using intent , i saw a example by Mr Erel solving someone problem using this code:
i tried it by changing to :
and
but i got an error when compiling and says :
could not find module :LockScreenService_BR.
how to solve it , thank u.
wish has a service called "LockScreenService" , here is the manifest:
B4X:
AddApplicationText(
<service android:name="com.datasteam.b4a.system.lockscreen.LockScreenService">
<intent-filter >
<action android:name="com.datasteam.b4a.system.lockscreen.LockScreenService" />
</intent-filter >
</service>)
B4X:
SetReceiverAttribute(HttpUtilsService, android:exported, "true")
B4X:
Dim p As Phone
Dim i As Intent
i.Initialize("", "")
i.SetComponent("anywheresoftware.b4a.samples.flickr/.httputilsservice$httputilsservice_BR")
p.SendBroadcastIntent(i)
i tried it by changing to :
B4X:
SetReceiverAttribute(LockScreenService, android:exported, "true")
and
B4X:
Dim p As Phone
Dim i As Intent
i.Initialize("", "")
i.SetComponent("com.datasteam.b4a.system.lockscreen/.LockScreenService$LockScreenService_BR")
p.SendBroadcastIntent(i)
but i got an error when compiling and says :
could not find module :LockScreenService_BR.
how to solve it , thank u.