دوستان لطفا راهنمایی کنید.
من طبق این آموزش بازار:
http://pardakht.cafebazaar.ir/doc/quickstart/?l=fa
تا مرحله 6 کدها و فایلها رو کپی کردم+مرحله 9
تو اکتیویتی یه دکمه دارم می خوام وقتی کاربر روش کلیک کرد به صفحه خرید(محصول) هدایت بشه و اگر نرم افزارو خریده بود کدهای آپدیت انجام بشه.
این اکتیویتی منه چکار باید بکنم ؟



package com.example.smsbaaz;

public class UpdateActivity extends Activity {




//Debug tag, for logging
static final String TAG = "";
//SKUs for our products: the premium upgrade (non-consumable)
static final String SKU_PREMIUM = "";
//Does the user have the premium upgrade?
boolean mIsPremium = false;
//(arbitrary) request code for the purchase flow
static final int RC_REQUEST = ;
//The helper object
IabHelper mHelper;




@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.update);



String base64EncodedPublicKey = "";
// You can find it in your Bazaar console, in the Dealers section.
// It is recommended to add more security than just pasting it in your source code;
mHelper = new IabHelper(this, base64EncodedPublicKey);

Log.d(TAG, "Starting setup.");
mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
public void onIabSetupFinished(IabResult result) {
Log.d(TAG, "Setup finished.");

if (!result.isSuccess()) {
// Oh noes, there was a problem.
Log.d(TAG, "Problem setting up In-app Billing: " + result);
}
// Hooray, IAB is fully set up!
mHelper.queryInventoryAsync(mGotInventoryListener) ;
}
});




Button btn = (Button) findViewById(R.id.button1);










}


@Override
public void onDestroy() {
super.onDestroy();
if (mHelper != null) mHelper.dispose();
mHelper = null;
}

}