Thanks Justin and TreKing! I haven't found the error for onDestroy after looking at the log.... but I've managed to close the application using JAVA System.exit() instead. It does stop retrieving GPS signals after I exit the app.
On Jan 7, 2:20 am, TreKing <treking...@gmail.com> wrote: > > BTW, if i change onDestroy() to finish(), the application works fine so > > other parts should have no problem. How can I end the application lifecycle > > successfully? > > Um ... call finish() instead of onDestroy? > > Look at the logs like Justin said. My guess: you're not supposed to call > onDestroy() and the system is throwing an exception because you've done so > (I believe I've seen it also throw if you don't call super.onDestroy() in > your overwritten method ... so *it knows* . > > --------------------------------------------------------------------------- > ---------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking
-- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en