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

  • Home
  • SEARCH
  • 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 7413735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:57:04+00:00 2026-05-29T06:57:04+00:00

I am new to android development. I am creating an android application, in which

  • 0

I am new to android development. I am creating an android application, in which there is a background service always running..

The service’s target is to monitor incoming sms messages and do processing based on message filter

However the user would also want to change service bahviour through some UI/Activity. for exmaple user might wanna change the message filter.

SO in this case would my Service and Activity run as one process or seperate process ?

How would I make them communicate ? Please advise best possible model so that the performance is not affected.

Second question: Does an apk always have one processes or can have multiple processes ??

Thanks,

  • 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-29T06:57:04+00:00Added an answer on May 29, 2026 at 6:57 am

    By default, all components of your application run in the same process, but it is possible to arrange for different components to run in different processes by using the android:process attribute in the manifest xml. I would strongly recommend against this for what your are doing.

    You will want your Activity and Service to run in the same process, but the Service should arrange to have it’s own thread to do processing on, otherwise the Service will run in the main UI thread, which you definitely don’t want.

    You could use the IntentService class to allow your activity to post Intent’s to your Service.
    The IntentService class then queues the Intents up and processes them one at a time on a dedicated worker thread that is managed by IntentService.

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

Sidebar

Related Questions

I am new to Android development and running into a bizarre issue for which
I am new to Android Development. Actually, I haven't started yet because I always
I'm quite new to Android development and was about to finish my first application
I'm brand new to Android development... coming from iPhone and .Net background. I've seen
I am new to Android development and am creating a ToDoList app in Android.
I am new to Android development and am trying to determine if there is
I am creating an Android application, and I have a problem.(I am new to
I am new to android development. I have a doubt that while creating an
I am new to Android development and want to build a first sample application.
I'm new to Android development, and I was wondering if anyone knew either how

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.