calling finish() will close down the activity, if I remember correctly though if you've created your own Threads you'll have to stop them manually. You can do that in onStop() of course.
On Jul 3, 2:19 pm, Niko Gamulin <niko.gamu...@gmail.com> wrote: > The code is quite complex. To simplify the question I would like to know if > there is any function that terminates all the processes which were running > inside the application. > > If I make a method obButtonExit() and bind it to a custom button, which > existing methods should be called inside the onButtonExit() in order to > release all the resources used by the running activity and terminate all the > processes? > > Regards, > > Niko > > > > > > On Fri, Jul 3, 2009 at 1:19 PM, MrChaz <mrchazmob...@googlemail.com> wrote: > > > We can't really help without seeing the code in question really. > > Don't forget that when you press home or whatever to move away from > > your application it isn't necessarily closed so much as minimized. > > > On Jul 3, 10:13 am, Niko Gamulin <niko.gamu...@gmail.com> wrote: > > > Hi, > > > > I created an application which is displaying camera preview. When the > > > application terminates I noticed that some processes are still running. > > Also > > > if I try to run the original camera application it displays an error > > > (obviously due to the active process which belongs to the custom > > > application). > > > > Does anyone know how to release all resources when application ends? > > > > Thanks! > > > > Niko > > > > --http://mypetprojects.blogspot.com/ > > --http://mypetprojects.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---