[android-developers] Re: Implementing 'push technology' into Android apps
There is blog post by Josh Guilfoyle Push services: Implementing persistent mobile TCP connections http://devtcg.blogspot.com/2009/01/push-services-implementing-persistent.html On Oct 16, 7:43 pm, rubeN_vl rvanluch...@hotmail.com wrote: Hi, What are the different ways to implement push technology into your Android app? The client Android app is supposed to receive content (XML Data) pushed by the server. I've looked around and found out it was possible to achieve it with usage off the SOAP protocol. But are there some better ways top implement push? The main concern in this project is the phones battery life, all off it has to happpen over WiFi, pushed content has to be viewable on the device immediately. Thoughts and/or sample code is welcome! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
hi miguel paraz, So now i feel what i have analysed is correct on the push service.I want to know how to implement the server, does the server has to intiate some javascript method. Also whether the android can implement the cometd using the jetty library these are my doubts, assume i have contacts in server and i want to update it in my android client whenever there is a new contact added, do you think using the Jetty Bayeux will be sufficient. If you have implemented and could be shared , it will be great Thank you On Oct 27, 2:13 am, Miguel Paraz mpa...@gmail.com wrote: On Oct 27, 6:01 am, arvchak arvc...@gmail.com wrote: Wat if we use Comet, even i have searching for this stuff not lucky though.Comet is the push technology implemented as an alternative to ajax.The gtalk we see in the gmail uses comet.I suppose we should implement this to make it easier. If someone is good at it can help us. this is one example which i saw but not able to understand.If any one can and share the knowledge it will be great http://blogs.webtide.com/dyu/entry/android_chat_using_jetty_cometd I am using this example. Which part don't you understand - the protocol and how it works? Or the actual code? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
Hi - have a look at Diffusion - http://www.pushtechnology.com - I used this to push/stream data to a blackberry app and a website simultaneously. It has a nice feature called 'best message delivery' which ensures you can’t flood a device with the content you push to it (i.e. use to much battery power/lock it) – we were streaming foreign exchange rates which change about 8 times a second…, without causing either devices any problems). It has an open protocol so it should be possible to connect and receive data from any device/application that can open a socket. I think there is an Android library already packaged with it so you shouldn’t have to write your own library to get your self up and running, although the protocol is fairly straight forward if there isn’t one. On Oct 27, 6:45 am, lucky4me bakhtiyo...@gmail.com wrote: There is blog post by Josh Guilfoyle Push services: Implementing persistent mobile TCP connectionshttp://devtcg.blogspot.com/2009/01/push-services-implementing-persist... On Oct 16, 7:43 pm, rubeN_vl rvanluch...@hotmail.com wrote: Hi, What are the different ways to implement push technology into your Android app? The client Android app is supposed to receive content (XML Data) pushed by the server. I've looked around and found out it was possible to achieve it with usage off the SOAP protocol. But are there some better ways top implement push? The main concern in this project is the phones battery life, all off it has to happpen over WiFi, pushed content has to be viewable on the device immediately. Thoughts and/or sample code is welcome!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
Wat if we use Comet, even i have searching for this stuff not lucky though.Comet is the push technology implemented as an alternative to ajax.The gtalk we see in the gmail uses comet.I suppose we should implement this to make it easier. If someone is good at it can help us. this is one example which i saw but not able to understand.If any one can and share the knowledge it will be great http://blogs.webtide.com/dyu/entry/android_chat_using_jetty_cometd hope it is useful On Oct 19, 12:51 pm, jotobjects jotobje...@gmail.com wrote: The standards based Jain SIP stack has been used successfully on Android (in a simple chat example). Jain SIP supports the Subscribe/ Notify SIP messages where Notify can be the push portion of the interchange. I don't know how the IP connection issues mentioned in this thread are resolved (or not). Does anybody have experience with this? On Oct 19, 4:47 am, Miguel Paraz mpa...@gmail.com wrote: On Oct 19, 12:34 am, Rafael Sanches ra...@users.sourceforge.net wrote: This is not push, but if you want real time you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection Hi, I have tried the Jetty Bayeux client code on Android. I just used it for some tests, not production, and it was fine in my limited use. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
On Oct 27, 6:01 am, arvchak arvc...@gmail.com wrote: Wat if we use Comet, even i have searching for this stuff not lucky though.Comet is the push technology implemented as an alternative to ajax.The gtalk we see in the gmail uses comet.I suppose we should implement this to make it easier. If someone is good at it can help us. this is one example which i saw but not able to understand.If any one can and share the knowledge it will be great http://blogs.webtide.com/dyu/entry/android_chat_using_jetty_cometd I am using this example. Which part don't you understand - the protocol and how it works? Or the actual code? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
What is not push? On 18 okt, 18:34, Rafael Sanches ra...@users.sourceforge.net wrote: hi, This is not push, but if you want real time you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection regards rafael On Oct 16, 7:43 am, rubeN_vl rvanluch...@hotmail.com wrote: Hi, What are the different ways to implement push technology into your Android app? The client Android app is supposed to receive content (XML Data) pushed by the server. I've looked around and found out it was possible to achieve it with usage off the SOAP protocol. But are there some better ways top implement push? The main concern in this project is the phones battery life, all off it has to happpen over WiFi, pushed content has to be viewable on the device immediately. Thoughts and/or sample code is welcome! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
On Oct 19, 12:34 am, Rafael Sanches ra...@users.sourceforge.net wrote: This is not push, but if you want real time you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection Hi, I have tried the Jetty Bayeux client code on Android. I just used it for some tests, not production, and it was fine in my limited use. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
The standards based Jain SIP stack has been used successfully on Android (in a simple chat example). Jain SIP supports the Subscribe/ Notify SIP messages where Notify can be the push portion of the interchange. I don't know how the IP connection issues mentioned in this thread are resolved (or not). Does anybody have experience with this? On Oct 19, 4:47 am, Miguel Paraz mpa...@gmail.com wrote: On Oct 19, 12:34 am, Rafael Sanches ra...@users.sourceforge.net wrote: This is not push, but if you want real time you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection Hi, I have tried the Jetty Bayeux client code on Android. I just used it for some tests, not production, and it was fine in my limited use. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
hi, This is not push, but if you want real time you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection regards rafael On Oct 16, 7:43 am, rubeN_vl rvanluch...@hotmail.com wrote: Hi, What are the different ways to implement push technology into your Android app? The client Android app is supposed to receive content (XML Data) pushed by the server. I've looked around and found out it was possible to achieve it with usage off the SOAP protocol. But are there some better ways top implement push? The main concern in this project is the phones battery life, all off it has to happpen over WiFi, pushed content has to be viewable on the device immediately. Thoughts and/or sample code is welcome! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
There are lots of issues with implementing push technology, here are just a few: You are looking at the application layer, you need to be concerned about the transport layer(s). How does your server know the address (IP or other) of the phone? It gets assigned by DHCP and whenever the connection is broken/dropped for any reason it can be given a different IP address by the telecommunications provider. If you are connecting from the phone to the server to when the phone's IP address changes you may as well keep the channel open and pull the data down. With a WiFi connection the phone is probably on the inside of a NAT router so again making an incoming connection to the phone is not going to work. So many problems, you are probably best just sending an SMS message containing a url to your web server and getting the end-user to click on it. -- RichardC On Oct 16, 3:43 pm, rubeN_vl rvanluch...@hotmail.com wrote: Hi, What are the different ways to implement push technology into your Android app? The client Android app is supposed to receive content (XML Data) pushed by the server. I've looked around and found out it was possible to achieve it with usage off the SOAP protocol. But are there some better ways top implement push? The main concern in this project is the phones battery life, all off it has to happpen over WiFi, pushed content has to be viewable on the device immediately. Thoughts and/or sample code is welcome! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Implementing 'push technology' into Android apps
To add to the list, not just on Wifi, but even on your provider's network you very well might be behind a NAT... - Dan On Fri, Oct 16, 2009 at 4:06 PM, RichardC richard.crit...@googlemail.comwrote: There are lots of issues with implementing push technology, here are just a few: You are looking at the application layer, you need to be concerned about the transport layer(s). How does your server know the address (IP or other) of the phone? It gets assigned by DHCP and whenever the connection is broken/dropped for any reason it can be given a different IP address by the telecommunications provider. If you are connecting from the phone to the server to when the phone's IP address changes you may as well keep the channel open and pull the data down. With a WiFi connection the phone is probably on the inside of a NAT router so again making an incoming connection to the phone is not going to work. So many problems, you are probably best just sending an SMS message containing a url to your web server and getting the end-user to click on it. -- RichardC On Oct 16, 3:43 pm, rubeN_vl rvanluch...@hotmail.com wrote: Hi, What are the different ways to implement push technology into your Android app? The client Android app is supposed to receive content (XML Data) pushed by the server. I've looked around and found out it was possible to achieve it with usage off the SOAP protocol. But are there some better ways top implement push? The main concern in this project is the phones battery life, all off it has to happpen over WiFi, pushed content has to be viewable on the device immediately. Thoughts and/or sample code is welcome! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---