Use AlarmManager.RTC_WAKEUP instead of
AlarmManager.ELAPSED_REALTIME_WAKEUP and a 'proper' time interval
value, i.e.
24hrs*60mins*60secs*1000msecs for a day.


On Aug 15, 10:27 pm, Alaeddine Ghribi <[email protected]>
wrote:
> 2011/8/15 TreKing <[email protected]>
>
> > On Mon, Aug 15, 2011 at 8:27 AM, Alaeddine Ghribi <
> > [email protected]> wrote:
>
> >> So the minimum value is half an hour(30 minutes)
>
> > I don't think AlarmManager is intended for prolonged periods of time (like
> > days).
>
> For now, i have to work it, then for the problem of a long period i'll find
> a solution.
>
>
>
> >> ( but can i make 1800000/30 to have 1 minute ? :\ )
>
> > I'm not sure what that means.
>
>  INTERVAL_HALF_HOUR is a constant that has 1800000 as value. The idea was to
> divise this value with 30 to have one minute.
>
>
>
> >> And how i know that the brodcast receiver get called ?
>
> > Debug your code ? A LogCat message in the receiver at the very least.
>
> I've put a simple Log at then end of repeating() function, that doesn't
> shows, that's means that this function that trigger ALL doesn't executes.
> I've called this func in OnCreate. Don't know what to do :\
>
>
>
>
>
>
>
>
>
> > -------------------------------------------------------------------------------------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to