Pass interface between activities in intent - interface fails to be Serializable or Parcelable : <p>I want to pass an interface from 1st activity to 2nd activity.</p>

<p>I want to initiate methods from the interface from the 2nd activity which will affect the 1st activity.</p>

<p><strong>I'm well aware that it's very overkilling not using the <a href="https://developer.android.com/training/basics/intents/result.html" rel="noreferrer">onActivityResult</a> mechanism, and that it might not be good programming, but roll with me please.</strong> </p>

<p>Here's the issue - my interface can't implement <a href="https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html" rel="noreferrer">Serializable</a> / <a href="https://developer.android.com/reference/android/os/Parcelable.html" rel="noreferrer">Parcelable</a> since interface can't implement another class.</p>

<p>This is my interface : </p>

<pre><code>public interface ITest {
     void onSuccess(String text);
}
</code></pre>

<p>But, i can't start my activity with this interface since it's not <a href="https://developer.android.com/reference/android/os/Parcelable.html" rel="noreferrer">Parcelable</a>. </p>

<pre><code>intent.putExtra("testInterface", new ITest() {
    @Override 
    void onSuccess(String text) {
    }
}
</code></pre>

<p>Obviously, i receive a compilation error : 
<code>Cannot resolve method 'putExtra(java.lang.String, ITest)'</code></p>
