title: Calling method from Activity inside an adapter
body: <p>Hi guys this is rather a silly question because i'm confused. what i'm trying to do is to call a method(share to facebook) from an activity inside my adapter.</p>
  
  <p>this is the illustration:</p>
  
  <p>Activity: 
  postToFacebook(Pets dog);
  listview that holds list of dogs.</p>
  
  <p>Adapter:
  adapter in which i use to create custom view for better looking.</p>
  
  <p>problem is that i want to set an onLongClickListener on the LinearLayout that holds all the dog's info (this way user can hold any part of the info) to be shared to facebook.</p>
  
  <p>is there a way to do this? </p>
  
  <p>thanks a lot!</p>