Android Question Weird effect with Activity.AddMenuItem

Noelkman

Member
Licensed User
Longtime User
Hi All,
I have a curious effect here. I'm adding some menu items via Activity.AddMenuItems in Activity_Create.

Now I have some initializations like Table, LoadSQL etc... that all works perfect no problem with that.

When I'm trying to show a Busy Initicator during these inits via ProgressDialogShow it does not show the dialog.
When I'm using Sleep(100) right after the ProgressDialogSHow is shows it but then the Menu is not showing.

My question: Is it bad practice to use Sleep in Create of what has the menu todo with this. Invalidate Activity does not help either.


Regards.
 

Noelkman

Member
Licensed User
Longtime User
Hi Erel,
regarding your question I just put the AddMenuItems at topmost and boom they are there. If I put them after Sleep they do not show.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…