The obvious way, since it's your app.. just keep a flag saying "im starting 
an activity" whenever you start the prefs one...



On Tuesday, March 5, 2013 12:52:30 PM UTC+2, latimerius wrote:
>
> On Tue, Mar 5, 2013 at 1:44 AM, RichardC 
> <[email protected]<javascript:>
> > wrote:
>
>>
>> http://developer.android.com/reference/android/app/Activity.html#isFinishing()
>>
>>
> isFinishing() is unfortunately useless for this purpose - it's just 
> 'false' in both cases, on 2.1, 2.2, 2.3, 4.1 and 4.2 (so I suppose across 
> Android versions).  And it makes sense, too - the docs you link to state 
> that it merely indicates whether finish() has been called.  Whether an 
> Activity is pausing to display another Activity of the same app, or because 
> the user has pressed Home and is going to the home screen, finish() is 
> usually not involved, except perhaps under rather specific circumstances.
>  
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to