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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:37:29+00:00 2026-06-04T00:37:29+00:00

Google example for in-app payment suggests to add the manifest entry in order to

  • 0

Google example for in-app payment suggests to add the manifest entry in order to receive the payment confirmations. But in Native Extension for AIR, the receiver will not be found as its a different package. So i moved the receiver part to code as follows

final IntentFilter filter = new IntentFilter("com.android.vending.billing.IN_APP_NOTIFY");
filter.addAction("com.android.vending.billing.RESPONSE_CODE");
filter.addAction("com.android.vending.billing.PURCHASE_STATE_CHANGED");

a.registerReceiver(billingReceiver, filter);   

But the service’s onreceive() method never gets called.

Is there a different way of registering the activity to get receiver calls?

  • 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-04T00:37:30+00:00Added an answer on June 4, 2026 at 12:37 am

    According to some reference sites, adding the billing receiver in code doesn’t work. So moved it to manifest file, removed the package and referred it from the root directory. So problem solved.

    Manifest for AIR app would look like this for more info for those who are trying out!

    <android>
        <manifestAdditions>
    
          <![CDATA[
          <manifest android:installLocation="auto">
           <uses-permission android:name="com.android.vending.BILLING" />
            <uses-permission android:name="android.permission.INTERNET" />
            <uses-permission android:name="android.permission.RECORD_AUDIO"/>
          <uses-permission android:name="android.permission.VIBRATE"/>
    
            <application>
    
            <service android:name="<package>.BillingService" />
    
            <receiver android:name="<package>.BillingReceiver">
                <intent-filter>
                    <action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
                    <action android:name="com.android.vending.billing.RESPONSE_CODE" />
                    <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
                </intent-filter>
            </receiver>
    
          </application>
    
    
    </manifest>]]>
        </manifestAdditions>
      </android>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I load url, for example mail.google.com, into webview in my app, and scrolling on
In this example, the Google App Engine documentation makes the Customer the entity group
Trying to implement google C2DM service. registrationIntent.putExtra(app, PendingIntent.getBroadcast(context,0,new Intent(), 0)); registrationIntent.putExtra(sender,example@gmail.com); context.startService(registrationIntent); Almost every
I'm trying to run the google maps example but it keep giving me in
I am playing with the Google in-app billing example app Dungeons. In this app,
I'm using the latest version of Google App Engine, Python 2.7 and webapp2, but
My URL service hosted at Google App Engine return JSON content type. The example
How can I cache a Reference Property in Google App Engine? For example, let's
How do I escape parameters of queries in JDO (Google App Engine)? For example,
I'm running the Dungeons example successfully when testing Google Plays In Application Billing. But

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.