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?
Thanks

--



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
 http://sites.google.com/site/rezmobileapps/treking 

--


Sponsored Links


Other Threads

1. Invoking apps in background when phone starts

Hi,

I want my application to load by itself each time the phone starts. I
don't want the app to come for display, but some thing like
establishing connection to server should occur. So,
1) Is it possible to establish connection in background automatically
without app coming to view.
2)Once the connection is established, i want to display data from
server as popup notifications similar to GTalk email notification.
(again app will not come to view)

Please help me on this!

Thanks in advance
Veradis

-- 

2. List of Intents related to Contact

Is there a place where I can find all the intents related to
operations on Contacts. I am working on an app that allows sending of
a contact entry as a vcard. For this I need a functionality whereby
when somebody touches a contact entry (Long Press) for a contact, I
can display a menu option "Send as VCard over SMS".

-- 

3. Observing User inactivity time and broadcasting intent after timeout

4. how can we change the image view at runtime

5. WebView - flipping

6. Just trying to capture screenshots

7. failed on Ubuntu 9.10 x64