I'll try this here as well and see if I can repro the problem on a rooted device.
On Mon, Dec 17, 2012 at 9:20 AM, Goncalo Oliveira <gonc...@minkan.net>wrote: > Fred, > > Just to clarify, I haven't declined the heartbeat option. I just would > like to avoid low timestamps such as every 5 minute. > I'm trying to identify what's happening behind the scenes like Robert > suggested, as it seems that it's not just my app that throws this stall. > I'll post my results as soon as possible. > > > On 17 December 2012 17:03, Fred Niggle <fred.nig...@googlemail.com> wrote: > >> Well, just to recap: >> >> You know that android is not supposed to keep an idle connection open for >> an extended period. >> Also you have declined the option to use of a heartbeat to keep the >> connection open. >> >> You also know that GCM (C2DM) have a way of keeping in touch. >> >> At this point the main(only?) route to pursue is to look over the GCM >> libs from google and see how they do it. >> >> Best regards, >> Fred >> >> >> On 17 December 2012 16:49, Goncalo Oliveira <gonc...@minkan.net> wrote: >> >>> Fred, >>> >>> I do understand that this is not a "standard" for most android apps. >>> Therefore, there are a number of scenarios, like Mark pointed out. In this >>> case, the connection is also used for data pushing. Polling would be much >>> simpler, but it does not fit the required scenario. >>> >>> >>> On 17 December 2012 16:43, Mark Murphy <mmur...@commonsware.com> wrote: >>> >>>> On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle >>>> <fred.nig...@googlemail.com> wrote: >>>> > I am wondering why you are trying to maintain an idle connection? >>>> >>>> You would do this for any sort of push delivery from the server: >>>> standard push notifications, VOIP for incoming calls, etc. >>>> >>>> So, for example, C2DM used to have this sort of heartbeat logic, and I >>>> presume GCM does too. >>>> >>>> -- >>>> Mark Murphy (a Commons Guy) >>>> http://commonsware.com | http://github.com/commonsguy >>>> http://commonsware.com/blog | http://twitter.com/commonsguy >>>> >>>> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas >>>> sobre desenvolvimento de aplicações para Android: >>>> http://www.andglobe.com >>>> >>>> -- >>>> 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 >>>> >>> >>> >>> >>> -- >>> Gonçalo Oliveira >>> >>> -- >>> 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 >>> >> >> >> >> -- >> Sent from an Ubuntu Desktop. >> >> Ubuntu Speech >> input<https://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinput>is >> now available on Google Play, along with Magnetic >> Door Alarm >> app<https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm> >> . >> >> -- >> 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 >> > > > > -- > Gonçalo Oliveira > > -- > 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 > -- 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