Jump to content

[Résolu]Quitter complètement une application


olboss

Recommended Posts

Bonjour,

Je suis nouveau dans le développement Android, j'utilise donc la fonction finish() pour quitter mon application mais elle reste quand même quand je regarde dans task killer!

Quel est la fonction pour quitter (ou killer) complètement l'application.

Merci d'avance

Edited by olboss
Link to comment
Share on other sites

C'est le comportement par défaut de toute application, c'est voulu par Android. Maintenant si ca t'agaces vraiment et que ton application n'a pas besoin d'être lancée plusieurs fois par jour, tu peux lire ça :

http://stackoverflow.com/questions/2092951/how-to-close-android-application

System.exit(0);

NB: Ne pas oublier non plus de bien libérer toutes les ressources utilisées.

Edited by chimarro
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...