view -> parent activity

by Andrei » Thu, 22 Apr 2010 13:17:03 GMT

Sponsored Links
 If I have reference to a view that is on activity
How do I get reference to the activity from view reference?


view -> parent activity

by ~ TreKing » Thu, 22 Apr 2010 22:05:19 GMT


You don't - at least not without maintaining your own mapping or holding a
reference somewhere yourself.
I guess you COULD put the Activity reference in the view's tag ... but that
seems dirty.
Why do you need an Activity? Most everything you need is usually available
from Context, which a view has.

TreKing - Chicago transit tracking app for Android-powered devices 


Sponsored Links

Other Threads

1. Chess Walk

My game Chess Walk ( was in top 50%
bud didn't make it... BTW can someone please tell me what are the
comments in Market, I don't have an Android phone yet.


2. Googlewave-Bos Wilber

Bos Wilber,sorry email invitationnya googlewave secara gak sengaja
hilang dari list,jika berkenan mohon untuk di inivte lagi


Sent from my mobile device

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group:


3. does XT9 keyboard support in Android 2.0?

4. Managing receiving/making calls with MediaPlayer

5. Join here

6. Rom lagi rom lagi

7. Android App Stores: