I will be remaking my old B4A app with multiple Activities. I used SQL and TTS here. Now I want to use B4XPages.
1. I used SQL.Initialize... in B4XPage_Created in B4XMainPage file. Where is the best place to put SQL.Close?
2. I will use TTS.Speak on some pages. Where is the best place to place TTS.Initialize, TTS. SetLanguage etc., TTS.Release? On wich subroutines?
1. Nowhere. It will be kept open until the OS kills the process.
2. Anywhere you like. One of the nice things about B4XPages is that the classes are simple, regular classes and they are never paused or anything.