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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:28:50+00:00 2026-06-17T06:28:50+00:00

I have started integrating GCM in my app. I have few queries regarding the

  • 0

I have started integrating GCM in my app. I have few queries regarding the package name in which GCMIntentService need to be put. As android.developer site states

By default, it must be named .GCMIntentService, unless the
application uses a custom BroadcastReceiver that redefines its name.

And my application was earlier using Service class, which was called BackgroundService which was in com.abc.xyz.service package. My root package name is com.abc.xyz.ui.activity. I have gone through this link and this one. Solution works with there package name but with my package name its not same. as my root package is different.

My query is Do I need to rename my package structure or there is some other way? I don’t want to rename the package name as its the standard format which we are using since beginning. So is there other way to do the same. Thanks in advance.

Edit

<receiver
            android:name="com.abc.xyz.service.GCMReceiver"
            android:permission="com.google.android.c2dm.permission.SEND" >
            <intent-filter>
                <!-- Receives the actual messages. -->
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <!-- Receives the registration id. -->
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="com.abc.xyz.ui.activity" />
            </intent-filter>
        </receiver>

        <service android:name="com.abc.xyz.service.BackgroundService" />

Update and complete ansewer

As mentioned by Anup, it really does not matter where you put your file as far as you are qualifying it properly. Same did my job. You can take the ref. of my other question link which helped me achieving the answer. My this question link as every thing covered as it contains my manifest. So I am accepting Anup’s answer as its not wrong atleast.

  • 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-17T06:28:51+00:00Added an answer on June 17, 2026 at 6:28 am

    As long as you qualify it properly in your manifest file declaration of the service, it really shouldn’t matter AFAIK. You can put it in any package you want, just make sure you qualify it properly wherever you use it.

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

Sidebar

Related Questions

I have started implementing Subscriptions into my app but I cannot get the API
I have a few Hibernate Envers listeners which I use for audit purposes. I
I have started work on a project which uses Spring.Net, and i'm coming at
By now, most mainstream browsers have started integrating optimizing JIT compilers to their JavaScript
So I just started looking into integrating FB into my app and whipped up
I've started integrating doctests into my modules. (Hooray!) These tend to be files which
So, I'm just getting to really enjoy Core Data, and have started integrating it
Does anyone have experience integrating the iTunes Search API into Rails? I've started off
I have recently started using RSpec for Integration testing in my Rails application, to
I have started to look into python and am trying to grasp new things

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.