IMO you shouldn't ever need to call finish from within a view... That is why
the method is part of the Activity class.  What exactly are you trying to
do?  Perhaps we can come up with a better way to implement the
functionality.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Tue, Jan 26, 2010 at 11:16 PM, Latha Shivanna <[email protected]> wrote:

> Hi All
>
> This is a very basic & a whacky question.
>
> I have an activity class which has a setContentView() for a class
> which is a view. All my activities are done in the view. Now i need to
> call Activity.finish() so my whole acticity is closed when i opt for
> an exit of the app.
>
>
> Had i been in an activity class, i can easily call this as
> "this.finish()" but how do i do this being in a View?
>
>
> Inshort how do  I do a proper general exit/cleanup when my app closes?
> How do i call an activity.finish() being in view?
>
>
> Please do shower some light on this.
>
>
> thanks
> Latha
>
> --
> 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
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
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
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to