Get Activity object from Custom Preferences
<p>I am trying to integrate facebook-connect to my android application. All the examples i am seeing over the internet are creating the connection from an Android activity. I am doing something a bit different, the user can configure its connection to facebook from a custom preference. I was successfull when doing it for twitter and foursquare. However, the method Facebook.authorize requires an Activity as parameter, and since i am inside a preference, i am not able to find any reference to an activity object.</p>

<p>So my question here is, how to get a reference for an activity inside a preference?</p>

<p>Thank you all
T</p>
