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

  • Home
  • SEARCH
  • 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 8384575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:26:13+00:00 2026-06-09T17:26:13+00:00

i am developing android in-app application with static In-app Product ID: android. test. purchased

  • 0

i am developing android in-app application with static In-app Product ID: android. test. purchased that is working good and i also get
Toast message: Thank you.You item will be appear shortly.
but in actual Product ID:com.android.example not working properly.and i don’t know toast message class now i am what to do.

public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

    mainview=(ImageView)findViewById(R.id.comcontractsol);

    mBillingObserver = new AbstractBillingObserver(this) {

        @Override
        public void onBillingChecked(boolean supported) 
        {
            Dungeon.this.onBillingChecked(supported);
        }

        @Override
        public void onPurchaseStateChanged(String itemId, PurchaseState state) 
        {

            if(itemId.equals("android.test.purchased"))
            {       
                mainview.setBackgroundResource(R.drawable.unlock);
                Dungeon.this.onPurchaseStateChanged(itemId, state);
                startActivity(new Intent(getApplicationContext(), secondActivity.class));
            }
        }
        @Override
        public void onRequestPurchaseResponse(String itemId, ResponseCode response) 
        {
            Dungeon.this.onRequestPurchaseResponse(itemId, response);
        }
    }
  • 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-09T17:26:15+00:00Added an answer on June 9, 2026 at 5:26 pm

    If you want “com.android.example” as product id then you have to follow these steps:

    1. Create .apk file and upload it in android market but do not publish it.

    2. Find In-App purchase(items) link and create a product and publish it. The product name must be same as “com.android.example”. So I suggest you to use a meaningful product Id.

    See this similar question

    In order to test your application, you have to create test account see this link

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

Sidebar

Related Questions

I am developing Android TextToSpeech app. This application is not working in Android 1.5
I am developing one android application and in that app I am trying to
I am developing an android app using code from a normal java application. In
I am developing an Android application. This app deals with contact information (name, number,
i have developing an android application that requests an httpget and then it converts
I'm currently developing an android app that will regularly stop to watch streamed video.
i am developing android app to get direction between 2 location, as below Intent
I am developing android application. Now I have to create the app of newspaper.
i'm developing an android application similar to Google places app. I want a functionality
I'm developing an Android application that consists of: a lightweight background service that logs

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.