Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7046923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:42:31+00:00 2026-05-28T02:42:31+00:00

I have a requirement that my app, can receive events (e.g. messages) from server

  • 0

I have a requirement that my app, can receive events (e.g. messages) from server any time (even if app is not running). So do I need to create an infinitely running service to listen for these events?

This to me seems similar to Email apps in Smartphones, like whenever you receive a new email(event in my case), its able to show notifications and also able to update my list adapter whenever I receive an event.

But I dun know how will I implement this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:42:32+00:00Added an answer on May 28, 2026 at 2:42 am

    You should take a look at C2DM (push-messages):
    http://code.google.com/intl/sv-SE/android/c2dm/index.html#intro
    it allows a server to send messages to devices at any time.

    From the link:

    Here are the primary characteristics of Android Cloud to Device
    Messaging (C2DM):

    It allows third-party application servers to send lightweight messages to their Android applications. The messaging service is not
    designed for sending a lot of user content via the messages. Rather,
    it should be used to tell the application that there is new data on
    the server, so that the application can fetch it.
    […]
    An application on an Android device doesn’t need to be running to
    receive messages. The system will wake up the application via Intent
    broadcast when the the message arrives, as long as the application is
    set up with the proper broadcast receiver and permissions.
    […]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing native iPhone app. I have one requirement that, there are 5
In my app there is requirement that..I have 6 buttons in a nib, when
I have a web database app that runs in IE7+ (customer requirement) It is
In our project we have requirement that, after receiving sms message from third party
I have a requirement that i want to get all the system services running
We have a web application (JQuery and Spring) running on weblogic app server. There
I have a requirement to build an application that a company can use to
We have a launcher app that does some setup (starting a server), launches a
I have a very strange requirement... I need to launch my app from let's
I have a requirement for an app to communicate with a server, this communication

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.