how in singleton instance call interface
<p>This is my class </p>

<pre><code>public class MyReceiver implements TolEnabled
</code></pre>

<p>and here i want to call</p>

<pre><code>MyManager.getInstance(context, this, Properties.SDSMT, localText.toString(), Integer.valueOf(repetitions), false);
</code></pre>

<p>and in <code>MyManager</code> class I have singleton like</p>

<pre><code>public static MyManager getInstance(Context context, TolEnabled tolActivitiy, String enginePackage, String text, int repetition) {
        if (instance == null) {
            instance = new MyManager (...);
        }

        return instance;
    }
</code></pre>

<p>but in my <code>MyReceiver</code> receiver when i call singleton i get</p>

<blockquote>
  <p>The method getInstance(Context, TolEnabled, String, String, int) in
  the type MyReceiver is not applicable for the arguments (Context,
  MyReceiver , String, String, Integer, boolean)</p>
</blockquote>

<p>what can i do? <code>MyReceiver</code> implements interface and works if is not singleton. How to use it in singleton?</p>
