How to cancel Handler in code?
<p>I create 1 minute delayed timer to shutdown service if it's not completed. Looks like this:</p>

<pre><code>private Handler timeoutHandler = new Handler();
</code></pre>

<p>inside onCreate()</p>

<pre><code>timeoutHandler.postDelayed(new Runnable()
        {
            public void run()
            {
                Log.d(LOG_TAG, "timeoutHandler:run");

                DBLog.InsertMessage(getApplicationContext(), "Unable to get fix in 1 minute");
                finalizeService();
            }
        }, 60 * 1000);
</code></pre>

<p>If I get job accomplished before this 1 minute - I would like to get this delayed thing cancelled but not sure how.</p>
