Application doesnot quit on calling finish()

by Jean-Baptiste Queru » Tue, 28 Apr 2009 21:10:35 GMT


Sponsored Links
 This is not the way Android works.

JBQ








-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~



Application doesnot quit on calling finish()

by Jean-Baptiste Queru » Tue, 28 Apr 2009 21:32:05 GMT


 rite your code such that it either cleans up those static variables
or re-uses them if they've already been initialized.

There are going to be many combinations of the lifecycle of your
activity that will be similar to what you're seeing (e.g. your app
going in the background, the phone getting locked, the orientation
changing), and you'll need to deal with the problem at its root.
You're attacking a symptom without attacking the root cause.

JBQ

On Tue, Apr 28, 2009 at 6:24 AM, Sudha <sudhaker...@gmail.com> wrote:



--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Changing UI

Hello to All!
I am new to android! I have a query that I have one form in Android
app. When I click on next button it should load other components. and
hide the previous one or change the screen and load the new requested
form.

Like if we go in settings and select "Call Settings" it loads the
screen with "Call Settings." How can we achieve this?

Best Regards

Syed Muhammad Ali Naqvi

-- 

2. When clicking on a widget, how to make it just change the text inside the widget?



Use a service or broadcast PendingIntent, routing it to some component
of yours that changes the text and PendingIntent.

See:

http://github.com/commonsguy/cw-andtutorials/blob/master/34-AdvAppWidget/LunchList/src/apt/tutorial/WidgetService.java

and:

http://github.com/commonsguy/cw-andtutorials/blob/master/34-AdvAppWidget/LunchList/src/apt/tutorial/AppWidget.java

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 

3. OOT: Ehm...

4. Holand vs brazil

5. URGENT & IMPORTANT: Exciting Openings in Bangalore with ONSITE Opportunities

6. Setting and testing state of WiFi Tether hotspot setting in 2.2

7. Request for test of a game on an Evo