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 7904731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:12:26+00:00 2026-06-03T10:12:26+00:00

I have a VOIP Application, I need to login the application in background on

  • 0

I have a VOIP Application, I need to login the application in background on device bootup.

Currently the init to my application is done on UI Active(onCreate()).

I have the following things in my mind, can anyone help and clear my doubts.

  1. The service design is must to achieve this task??
  2. Which Service Remote(AIDL) or Local Service and why?
  3. How does the UI and Service interaction happens?
  4. After UI is active who gets the Call- Backs? UI or Service?
  5. Should i make Service as my Controller i.e Service to UI data Pass Vice-versa?

Sample App: Skype.

  • 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-06-03T10:12:28+00:00Added an answer on June 3, 2026 at 10:12 am

    So there are many ways to achieve what you want, it is a matter of what fits your style and design better. Hopefully you will find this information useful.

    1. For the application to login in the background on startup there are a few option. The first thing you will need is a BroadcastReceiver which is defined as a receiver in the manifest. Have the BroadcastReceiver catch the ACTION_BOOT_COMPLETED intent. From here you can launch your Service. This leads to #2.

    2. If all you are doing are RESTful calls then really an IntentService would be ideal. The difference between an IntentService and a Service is simple: An IntentService runs off of the main thread, executes it’s ‘code’ and dies. A Service, however runs on the main thread (this is an important fact) and is long running so it has to be told to stopSelf(). To take matters further, a Service is also less likely to be killed compared to an Activity (application components are killed to make room in memory for newly launched apps), ie. it takes higher precedence. The service can also be declared a foreground service which requires a notification but give even higher precedence. I think in your case a Service would be perfect.

    3. Once your UI (Activity) is opened the best way to connect to the Service would be the Binder. This will allow multiple interfaces to the Service from different applications / components if need be. AIDL is pretty cool stuff but from my experience much harder to manage since all parameters must be primitive or Parcables. AIDL is also slower an less efficient because it is really a form of IPC. When a Service is started with an intent the onStartCommand() method is called. If the service is started by an application trying to bind to it then the onBind() method is called. But you can start the Service with and Intent and then bind to it. If you prefer the RESTful approach where you just have quick calls for data you can use an IntentService with a ResultReceiver. This is a great article written about Google I/O examples and just overall well implemented if you are interested in the IntentService and ResultReceiver.

    4. This is up to you. Using the Binder or AIDL your Activity can call the Service methods just like object method where the ‘callback’ would just be the method return. If you use a ResultReceiver the Activity interfacing the Receiver would be the callback. You could also just pass Intents back and forth but this could get messy. Again for your case the Binder approach would be good as well as a Receiver.

    5. Think of the Service as a model in the MVVM system – use it as a helper to get data from, not as something that controls the logic of the application.

    Sorry if this seems messy there are so many ways to achieve what you are looking for. Its just a matter of what fits your situation best what you ‘feel’ is better. Not to mention the Android SDK is pretty large. I tried to hit on all the topics that could help you out. Good luck!

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

Sidebar

Related Questions

I did not find an answer to this question. I have a VOIP application.
I currently have a Service in Android that is a sample VOIP client so
We have a VoIP application imVOX , and we are looking at various ways
My application is a VOIP telephony toolbox. I have a series of UISwitch controls,
Background: I'm currently looking into building an Android VoIP app for work (we sell
Currently creating a VOIP application for Android and I was wondering is there any
I have a voip application I am working on using the OPAL voip SIP
I have a VOIP Based app which needs to be run 24/7..But System is
I have a Java desktop application I wrote, and I would like a recommendation
I want to implement something like voip communication that client doesn't need to install

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.