Send data from Android Library to Main Project Activity
<p>I am trying to send string from Android Library to a method in my Main Project Activity. How best can I do this</p>

<p>This is what I have tried </p>

<p><a href="https://stackoverflow.com/a/17912254">https://stackoverflow.com/a/17912254</a></p>

<p>But It gives me this error</p>

<p>java.lang.ClassCastException: zw.com.ianmanda.paynowandroid.PostPayment cannot be cast to zw.com.ianmanda.paynowandroid.OnTaskFinishedListener</p>