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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:09:19+00:00 2026-06-03T09:09:19+00:00

I have a library that contains a subclass of the Android Application class. The

  • 0

I have a library that contains a subclass of the Android Application class. The sub-class contains a method that launches a service (also contained in the library project).

When I include the library in my host application, the activity manager complains that it is unable to start the service intent (not found).

The code structure is:

Libraries manifest:

<service name="com.my.project.MyService" />

Application subclass within library:

Intent intent = new Intent(this, MyService.class);
startService(intent);

I can resolve the issue by defining the service again in the host applications manifest; However, I would prefer not to impose this requirement on developers using the library.

My question is, can I avoid the requirement for referencing the libraries service in the hosts manifest?

  • 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-03T09:09:20+00:00Added an answer on June 3, 2026 at 9:09 am

    NO

    At least As Far as I Know. You need to declare it in the manifest for it to be active.

    You can register receivers programatically . That you can google out.

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

Sidebar

Related Questions

I have an Android Library Project that contains several styles/themes defined in its styles.xml
We have a project that contains a library of Python and Scala packages, as
I'm using C# in VS2005. I have a class library that contains several enums
I have a C# class library that contains methods that need to be used
I have an assembly (.NET class library) that contains an object that implements EAP
I have F# class library assembly that contains two functions: let add a b
I have 2 projects: A Class Library that contains my classes/business logic A WPF
I have created mytest.jar file with library that contains near 30 library files also
I have a C# class library that contains several resources files organized in folders.
I have a library that contains a class that references dwm. If this library

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.