I just need to override show() for the Toast class
<p>I just need to override the <code>show()</code> method for the <code>Toast</code> class. I created a class which extends <code>Toast</code> class, but then I create a toast message I get an exception the <code>setView(View view)</code> hasn't been called. But I don't want to create a custom <code>View</code> for the method but use the default one. </p>

<p>So, how is that possible to override the only <code>show()</code> method without creation of custom <code>View</code> for the <code>setView(View view)</code> method?</p>

<p>Here is what I do:</p>

<pre><code> MyOwnToast m = new MyOwnToast(getApplicationContext());
        m.makeText(getApplicationContext(), "Bla bla bla", Toast.LENGTH_LONG);
        m.show();
</code></pre>

<p>And my custom toast is here:</p>

<pre><code>public class MyOwnToast extends Toast {
    public MyOwnToast(Context context) {
        super(context);
    }

    @Override
    public void show() {
        super.show();
        Log.i("Dev", "
}
</code></pre>

<p>Also it is stated on the <a href="http://developer.android.com/guide/topics/ui/notifiers/toasts.html#CustomToastView" rel="nofollow">dev site</a>:</p>

<blockquote>
  <p>Note: Do not use the public constructor for a Toast unless you are
  going to define the layout with setView(View). If you do not have a
  custom layout to use, you must use makeText(Context, int, int) to
  create the Toast.</p>
</blockquote>

<p>How I can override the <code>show()</code> method then?</p>
