Hi,

Is TimerTask running from the Activity or an (Android) Service ?

Sound like you need to use a Service with a Wake Lock to keep cpu
running after you press Power button.

Regards

On Nov 15, 8:34 pm, kazuya <iadcialim.g...@gmail.com> wrote:
> I have an application that takes pictures and upload them to server.
> Also I use TimerTask that sends these pictures to server.
> I follow these steps:
>
> 1. Take pictures
> 2. Click Home button and power
> 3. Wait for TimerTask to upload the picture
>
> This successfully runs on Motorola XT800 android 2.1. But when I
> install this in HTC A510e android 2.3, the application somehow paused.
> It resume after I turned it on using the power button.
> In cat log, I can also verify that in need there is a pause.
>
> What I want is to TimerTask(every 1 minute) to run always on both
> phones.
>
> Also I found this in the cat log:
> GC_CONCURRENT freed 434K, 52% free 3624K/7495K, external 0K/2028K,
> paused 10ms+25ms
>
> Please help

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

Reply via email to