In my application some times it may take large time to load some values( like retrieving driving directions from google maps).This results in the launch of the “Wait” alert dialog.I wish to know what happens when the Force close button is clicked? I mean What code will be run when the force close is enabled? Do we can manually adjust the time for which the “Wait” alert dialog appears? If not what is the default time by which this dialog appears?
Share
I know it can sometimes be annoying but they made it pretty much purposely (in my opinion) to ensure programmers make sure their app runs smoothly with no UI freezing ..
I cant find the documents about it right now but if I remember correctly its about 4 seconds..
you just need to make sure that there is no UI freeze or delay in your app which means that if your values takes more then a couple of seconds to load they should be loading asynchronously.
you need to move any heavy loading from your main activity to run asynchronusly (using async task or a thread).