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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:39:54+00:00 2026-06-15T17:39:54+00:00

Suppose we have two installed APKs with the same service and same action per

  • 0

Suppose we have two installed APKs with the same service and same action per APK. Like a kind or library used or so.

I understand that the last installed APK actually takes charge from the service’s point of view.

When any APK binds to the service mentioning the action I cannot actually specify to which server I want to bind. Or can I?

This is important I I have two different versions of the same library used for building those APKs. My code from a certain APK may expect the service is built with certain considerations.

Strictly speaking I need to know how I can bind to a specific service if more than one have the same name, package name (different from the actual package name) and action.

I’m sorry for such painful reading…

  • 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-15T17:39:55+00:00Added an answer on June 15, 2026 at 5:39 pm

    This cannot be changed for now.

    Talented programmers can change this, in a minute or two.

    I understand that the last installed APK actually takes charge from the service’s point of view.

    Actually, AFAIK, first one in wins, not the last one.

    if more than one have the same name, package name (different from the actual package name) and action.

    That is not possible, as you cannot have two apps installed at the same time with the same package name.

    It is possible for two apps to be installed with different package names, but that contain a Service with the same fully-qualified class name and exported with an <intent-filter> sharing the same action string. This is poor design, as I noted in my comment on the question.

    That being said, you can use setComponent() on the Intent used with startService(), etc. to identify the Service in question. You will need to use the two-String constructor, supplying the package name of the APK in the first parameter and the fully-qualified class name of the Service in the second parameter.

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

Sidebar

Related Questions

Suppose I have two tables Main and Other like the following: Main +----------+-----------------------------------+ |
Suppose I have two classes with the same interface: interface ISomeInterface { int foo{get;
Suppose I have two tables, - emp(empId number(1),empName varchar2(50)) and - manager(manId number(5),managerName varchar2(100))
Suppose I have two h:inputText components. I want to bind both of the text
Suppose we have two classes: class Base { private: int x; public: void f();
Suppose we have two tables Foo and Bar. I have an association table Foo_Bar
Suppose I have two Java projects in Maven / Eclipse: An open source application
Suppose I have two constructor function: var Person = function(xx,xx,xxx,xxxxxxx) { //Person initialization }
Suppose I have two .NET DataTables populated as follows, where ID is the primary
Suppose I have two classes that both contain a static variable, XmlTag. The second

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.