Android Question Loading Activity in Background

epiCode

Active Member
Licensed User
Is it possible to
1. Load a simple splash activity A (which displays basic app info)
2. Utilize the time to load activity B in background (with elements which take a longer time to get ready like populating CLV, Spinners etc from SQL)

Any other workarounds are also welcome
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
If you use B4xPages, then yes you can load up all of the other pages and initialise them whilst displaying a splash page.

you will need to call AddpageandCreate rather then just AddPage.
 
Upvote 0

epiCode

Active Member
Licensed User
If you use B4xPages, then yes you can load up all of the other pages and initialise them whilst displaying a splash page.

you will need to call AddpageandCreate rather then just AddPage.
Not possible without b4xpages ?
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Not really if the other Page is an Android Activity (take a look at the Activity lifecycle).

You can load the data in the background into classes (put the loading code in a service). But that will not allow you to populate visual elements. But it may be ok with lazy loading.
OR
you can use panels in one activity, but then B4xPages is a much better way of handling this.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…