Hey
I'm using the same example of dialog.showtemplate in B4A for pressing Button10
I defined "options As B4XListTemplate" in Globals. Then initialize it after my layout has been loaded (which contains Button10) and put the options in options
B4X:
Activity.LoadLayout("Mobile")...