Service taking too much space
<p>In my application I have a service in which I have a timer which is called every 3 seconds.
Inside  onTick() function I am accessing a URL and getting the result.
When I run the application this service is taking more than 30 MB.
Please help me if there is another method other than timer to call a function every 3 secs.</p>

<p>[code]
timer = new CountDownTimer(30000, 10000)
         {
              @Override
               public void onTick(long l) 
               {
                  Toast.makeText(getApplicationContext(),"NEXT CALL ...Dev:" + android_name + "ID:" + android_id, Toast.LENGTH_LONG).show();
                  acceptPairing();
               }</p>

<pre><code>           @Override
           public void onFinish() 
           { 
               timer.start();
           };
     }.start();
</code></pre>

<p>[/code]</p>

<p>Inside acceptPairing() I am doing the httppost call.</p>
