1

Possible Duplicates:
force close the application
Quitting an application - is that frowned upon?

Hi, I have a lot of Activities and i want to exit the application - to close all activities and the services at once. i tried to use this Process.killProcess( Process.myPid()) but that doesn't work , any tips?

Community
  • 1
  • 1
Bakih
  • 286
  • 1
  • 6
  • 13

1 Answers1

0

Use finish() and application will terminate.

NewUser
  • 46
  • 1
  • Wrong. finish() closes activities, not applications. – Falmarri Dec 21 '10 at 16:24
  • finish() just close the current Activity and i have a few activities in the stuck,but what about all the other services that run on the background? – Bakih Dec 22 '10 at 06:49