views:

30

answers:

1

Hi all,

Im displaying a notification when app running. For any reason app showed force close message, which closes the app after clicking the force close button, I need to remove the app icon from notification area.

Please guide me hw i can do this.

+2  A: 

I would strongly recommend not crashing your app in the first place. At the very least, add proper exception handling (but really, just fix your bugs).

If you absolutely cannot avoid crashes for whatever obscure reason, use an exception handler (Thread.setUncaughtExceptionHandler).

EboMike