wood burning stoves 2.0*
The moose likes Android and the fly likes Push on web and mobile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Push on web and mobile" Watch "Push on web and mobile" New topic
Author

Push on web and mobile

Luca Daffirzio
Greenhorn

Joined: Oct 11, 2002
Posts: 2
Hi, someone can explain to me how I could implement a service to push messages on web and mobile (Android) using Java?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38508
    
  23
. . . and welcome to the Ranch

We didn't notice you until you posted
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38508
    
  23
I think this question would sit better on a different forum, so I shall move it.
Luca Daffirzio
Greenhorn

Joined: Oct 11, 2002
Posts: 2
Campbell Ritchie wrote:I think this question would sit better on a different forum, so I shall move it.

Thank you, sorry for my mistake...


Please help me, how can I push messages on web and mobile?
Perry Hoekstra
Greenhorn

Joined: Dec 07, 2010
Posts: 28
There are a number of ways you can push messages to your device:

-> Polling - The mobile application would periodically poll one of your services and check for messages. However, as numerous people have pointed out, notifications are no good if they’re delayed due to a low polling period but the more frequently you poll, the more the battery is going to die.

-> SMS - Android can intercept SMS messages but you are limited by the size of the SMS payload.

-> Open a persistent connection - This fixes the polling issue listed above but would kill the battery.

Now, the leading push notification framework for Android seems to be Android Cloud to Device Messaging Framework (http://code.google.com/android/c2dm/#push) but it is in beta and you have to apply.

Another option is MQTT (IBM), a real good overview can be found here (http://tokudu.com/2010/how-to-implement-push-notifications-for-android).

Perry Hoekstra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Push on web and mobile