title: Pass an interface from class to activity
body: <p>If i have an object form interface in my class, how i can pass it to activity?</p>
  
  <p>My solution was to change it as static object, it's work fine but sometimes it create a memory leaks because of all the old references which the garbage collector cannot collect, and i cannot implement 'Serializable' on my interface.</p>
  
  <pre><code>public class MyClass {
       protected OnStringSetListener onstringPicked;
          public interface OnStringSetListener {
              void OnStringSet(String path);
  
          }
      //......//
        public void startActivity(){
                  Intent intent=new Intent(context,Secound.class);
                  // ?! intent.putExtra("TAG", inter);
                  context.startActivity(intent);
        }
  }
  </code></pre>