check if wifi is connected every 5 minutes after screen is off
<p>I have found good tutorial to for Handling Screen OFF and Screen ON Intents: <a href="http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/" rel="nofollow">http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/</a></p>

<p>but i want that after screen is off every 5 minutes wifi is checked if is connected</p>

<pre><code>ConnectivityManager connManager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
wifi.isConnected()
</code></pre>

<p>i want to use <code>alarm manager</code> <a href="http://developer.android.com/reference/android/app/AlarmManager.html" rel="nofollow">http://developer.android.com/reference/android/app/AlarmManager.html</a> but i don't know how to check every 5 minutes if is connected or not.</p>
