Strange one:
I have activity Main, I have button which do
Activity.finish
StartActivity (MainMenu)
on MainMenu activity_Create I first load the layout
Activity.LoadLayout("StepByAddress")
In this Activity I have AutoCompleteEditText1
which loads large list from local database
So I did:
ProgressDialogShow2("Loading, just a sec",False)
ReadTable (this read the local database and insert to list)
the problem is:
Once I click the button on Main activity, it will not show the layout and not show the progressdialog
until the "ReadTable" will finish, so if someone click on the button in Main, it looks like app not responding for few seconds instead of loading the layout and saying just a sec
If I remark the "ReadTable" all is good
I have activity Main, I have button which do
Activity.finish
StartActivity (MainMenu)
on MainMenu activity_Create I first load the layout
Activity.LoadLayout("StepByAddress")
In this Activity I have AutoCompleteEditText1
which loads large list from local database
So I did:
ProgressDialogShow2("Loading, just a sec",False)
ReadTable (this read the local database and insert to list)
the problem is:
Once I click the button on Main activity, it will not show the layout and not show the progressdialog
until the "ReadTable" will finish, so if someone click on the button in Main, it looks like app not responding for few seconds instead of loading the layout and saying just a sec
If I remark the "ReadTable" all is good