Android Question LWManager: Tick Event do not work. Why?

magatama

Member
Licensed User
Longtime User
why lwm_Tick event is not raised ?

Sub Process_Globals
  Dim lwm As LWManager
End Sub
Sub Service_Create
lwm.Initialize("lwm", True)
lwm.StartTicking(30)
End Sub

Sub lwm_Tick (Engine As LWEngine)
Dim a as int
a=1
End sub
 

DonManfred

Expert
Licensed User
Longtime User
1. What is LWEngine?
2. Use code tags when posting code!
3. It would be of help if you upload your project. without seeing the code we hardly can help.

Edit: Found it. It´s the livewallpaper...
I downloaded the sample and run it. It works as expected here. The tick is called multiple times in a second which bring us back to point 3)
 
Last edited:
Upvote 0

magatama

Member
Licensed User
Longtime User
1. What is LWEngine?
2. Use code tags when posting code!
3. It would be of help if you upload your project. without seeing the code we hardly can help.

Edit: Found it. It´s the livewallpaper...
I downloaded the sample and run it. It works as expected here. The tick is called multiple times in a second which bring us back to point 3)


I upload my project.
Tick event is not raised. I do not understand why.
 

Attachments

  • Test_LiveWallpaper.zip
    2.2 KB · Views: 221
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i dont need to run it. It is INCOMPLETE.

\Objects\res\xml\wallpaper.xml does not exists and it should be exists and should be set to readonly.

Additionally the complete changes in the manifest are missing.

Go again over the tutorial and follow the instructions EXACTLY!
 
Last edited:
Upvote 0
Top