Network tickle?

918 views
Skip to first unread message

Daniel

unread,
Mar 5, 2009, 6:19:42 PM3/5/09
to android-platform
What is a network tickle? And how to I go about sending one?

I see in my handset log that the Gmail application gets network
tickles (even when I have sync off for Gmail).

I have found the documentation references for android.content.Intent:
NETWORK_TICKLE_RECEIVED_ACTION | Broadcast Action: A new network
"tickle" notification has been received by the device.

but that doesn't tell me very much.

Dan.

Dianne Hackborn

unread,
Mar 5, 2009, 6:40:20 PM3/5/09
to android-...@googlegroups.com
These are part of the sync protocol with Google services, and not at this point available to non-Google applications.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support.  All such questions should be posted on public forums, where I and others can see and answer them.

Daniel

unread,
Mar 6, 2009, 5:56:29 PM3/6/09
to android-platform
Does a network tickle automatically wake the phone from being asleep?
Or does the Gmail app have to poll for tickles?

Dan.


On Mar 5, 5:40 pm, Dianne Hackborn <hack...@android.com> wrote:
> These are part of the sync protocol with Google services, and not at this
> point available to non-Google applications.
>
> On Thu, Mar 5, 2009 at 3:19 PM, Daniel <android-platf...@danapple.com>wrote:
>
>
>
> > What is a network tickle? And how to I go about sending one?
>
> > I see in my handset log that the Gmail application gets network
> > tickles (even when I have sync off for Gmail).
>
> > I have found the documentation references for android.content.Intent:
> > NETWORK_TICKLE_RECEIVED_ACTION | Broadcast Action: A new network
> > "tickle" notification has been received by the device.
>
> > but that doesn't tell me very much.
>
> > Dan.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com

Dianne Hackborn

unread,
Mar 6, 2009, 6:24:09 PM3/6/09
to android-...@googlegroups.com
The network stack will wake up the CPU when data is being received or sent, I believe.
hac...@android.com

Daniel

unread,
Mar 6, 2009, 6:32:05 PM3/6/09
to android-platform
OK, so (and maybe this should move to android-developers), if I have a
TCP/IP connection open for a long time, and the phone goes to sleep,
will incoming data wake the CPU and will be application be woken up?

I guess I can write a quick test for this, but would like to
understand what is supposed to work, as well.

Dan.

Dianne Hackborn

unread,
Mar 6, 2009, 7:43:44 PM3/6/09
to android-...@googlegroups.com
I believe so, but I am not the person to give you a definitive answer.  I generally don't deal with networking at either the low or high level. :}

Jean-Baptiste Queru

unread,
Mar 6, 2009, 7:58:02 PM3/6/09
to android-...@googlegroups.com
My understanding is that the CPU is kept up a little bit after a
network packet arrives, long enough for the interested app to grab a
wake lock (and it should hold it until right before blocking on the
next read()). This isn't a definitive answer, though.

JBQ

--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Daniel I. Applebaum

unread,
Mar 7, 2009, 1:52:12 AM3/7/09
to android-...@googlegroups.com
Dianne & JBQ,

Thanks for the info! I'll be experimenting with long-lived TCP/IP
connections. I hadn't expected that it would work like you describe, so
I hadn't played with it before, but now it sounds promising.

Dan.

Jean-Baptiste Queru wrote:
> My understanding is that the CPU is kept up a little bit after a
> network packet arrives,

> On Fri, Mar 6, 2009 at 4:43 PM, Dianne Hackborn <hac...@android.com> wrote:

Reply all
Reply to author
Forward
0 new messages