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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:17:26+00:00 2026-05-27T16:17:26+00:00

Problem: A Service called PdService is not found during execution when I send an

  • 0

Problem: A Service called PdService is “not found” during execution when I send an Intent to bind it from an Activity.

[Edit: Solution]

I am not crystal clear on the issues surrounding the solution, however a solution has been found. When I export the JAR of my main project (which is linked to an Android library project), I choose the option to include the library project in the JAR as well. This fixed the problem.

Now, its strange because the source code from the linked project was clearly making it into the JAR even before this, it just was not being “found” by the Android runtime. But for some reason explicitly including the entire linked project has fixed this issue. Its also an unfortunate workaround because I now have to include far more content in my JAR than I want to, but for now the problem is resolved.

[Original Problem Details]

Details:

  • The app is an AIR for Android app (.SWF + OTHER_STUFF -> .APK)
  • The java code (including PdService) has been packaged in an AIR Native Extension (.ane)
  • The Intent for PdService occurs within our custom FREContext (see AIR Native Extensions) which we have called PdContext, specifically in a method called init().
  • For completeness, I have included the tag for PdService in both the extension’s Android manifest, as well as the AIR application’s application.xml file.
  • The package name of the extension is: com.nichemobile.pd.pdextension
  • The class path of PdService is: org.puredata.android.service.PdService
  • The ID of the end-user application (AIR ID) is: com.nichemobile.pdextension.testapp

I have tried a number of combinations of Intents including (thisActivity is a reference to the executing Activity):

bindIntent.setClassName(thisActivity, "org.puredata.android.service.PDService");
bindIntent.setClassName(thisActivity, ".org.puredata.android.service.PDService");
bindIntent.setClassName(thisActivity, "..org.puredata.android.service.PDService");
bindIntent.setClassName("org.puredata.android.service", ".org.puredata.android.service.PDService");
bindIntent.setClassName("org.puredata.android.service", "org.puredata.android.service.PDService");
bindIntent.setClassName("", "org.puredata.android.service.PDService");
bindIntent.setClassName(".", "org.puredata.android.service.PDService");

Each Intent results in a runtime error claiming the service is “not found”. Does anyone have any idea how to correct this?

Based on my understanding of Intents for Services, the two parameters SHOULD be:
package: air.com.nichemobile.pdextension.testapp
class: org.puredata.android.service.PDService
But of course that did not work above in the very 1st example.

My current theory:

Upon inspecting the classes.dex file in the compiled APK, I found that at the root of this classes.dex file, there are 3 subdirectories:

  • air.com.nichemobile.pdextension.testapp (contains AppEntry Activity)
  • com (contains our extension Java classes)
  • org.puredata (contains all the PD classes including PdService)

I am wondering if the app cannot locate Services because they exist outside of the “air.com.nichemobile.pdextension.testapp” directory within the classes.dex file. Now, the app can execute code in classes in the /com and /org.puredata directories – but I’m wondering if the process for starting a Service on the Android platform is somehow being interfered with by this class structure in the classes.dex file.

As a somewhat perplexing example of what I’m talking about above – the line before I try to bind this service, I can say:

Log.d(TAG, "PdService package: " + PdService.class.getPackage());
Log.d(TAG, "PdService class name: " + PdService.class.getName());

and I get output:

PdService package: package org.puredata.android.service
PdService class name: org.puredata.android.service.PdService

Any clarification here will be appreciated.

Thanks.

Matt

  • 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-27T16:17:26+00:00Added an answer on May 27, 2026 at 4:17 pm

    I am not crystal clear on the issues surrounding the solution, however a solution has been found. When I export the JAR of my main project (which is linked to an Android library project), I choose the option to include the library project in the JAR as well. This fixed the problem.

    Now, its strange because the source code from the linked project was clearly making it into the JAR even before this, it just was not being “found” by the Android runtime. But for some reason explicitly including the entire linked project has fixed this issue. Its also an unfortunate workaround because I now have to include far more content in my JAR than I want to, but for now the problem is resolved.

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

Sidebar

Related Questions

I've got a rather confusing problem. Web Service A - Called directly by Win32
I recently had a problem during the deployment of a windows service. Four computers
i have a problem with binding a service to an activity in Android. The
I have an activity called message.java which is bound to the service GPS.java. The
I've set up a WCF web service to be called from my web site.
I am having a minor problem with WCF service proxies where the message contains
Problem: I have a WCF service setup to be an endpoint for a call
Problem: I have a python script that I have running as a service. It's
I have a problem with stopping a service and starting it again and want
I have a problem with my WCF Data Service, and this one is just

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.