I am trying to do an inappbilling demo. I studied this tutorial .
Lemm will talk about the steps that I took to complete this task.
I used the code below
package com.ohn.inappbilling; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.util.Log; import android.view.View; import android.widget.Button; import com.hello.inappbilling.util.IabHelper; import com.hello.inappbilling.util.IabResult; import com.hello.inappbilling.util.Inventory; import com.hello.inappbilling.util.Purchase; import com.ohn.inappbilling.R; public class MainActivity extends ActionBarActivity { private static final String TAG = "com.hello.inappbilling"; static final String ITEM_SKU = "com.buttonclick"; IabHelper mHelper; private Button clickButton; private Button buyButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); buyButton = (Button) findViewById(R.id.buyButton); clickButton = (Button) findViewById(R.id.clickButton); clickButton.setEnabled(false); String base64EncodedPublicKey = "******"; mHelper = new IabHelper(this, base64EncodedPublicKey); mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { public void onIabSetupFinished(IabResult result) { if (!result.isSuccess()) { Log.d(TAG, "In-app Billing setup failed: " + result); } else { Log.d(TAG, "In-app Billing is set up OK"); } } });
I created apk using File-Export-AndroidProject and downloaded it in alphabetical order.
I added users (the Google group) to the list of managing testers for alpha testing.
I added the product to the In-app Product and gave it id com.buttonclick
In the Gmail account settings with test access, I also added a Gmail ID. None of the identifiers is a developer identifier.
Can anyone tell a solution to this problem. I tried all available solutions on StackoverFlow .
source share