views:

35

answers:

1

Hi all,

How i can display custom error message before foreclose or Application not responding message will happen for an application.

Or

Can i display Custom message like "Please wait....." instead of Application not responding message.

Thank you

+1  A: 

You have to make sure you are handling any exceptions that are thrown. That is what causes a force close, an uncaught exception. as for the "not responding" message, again, this is up to the developer. You need to spawn new threads and do async tasks, that way processing does not block the main thread, which is what the UI runs on. When the main thread is blocked, that is when the "not responding" message happens. If you spawn a new thread, then you can display what ever kind of message you want to the user to notify them that something is processing.

Ryan Conrad
I understand your explanation.Thank you For reply Ryan.
Praveenb