use of org.horaapps.leafpic.util.inapppurchase.IabHelper in project LeafPic by HoraApps.
the class DonateActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(org.horaapps.leafpic.R.layout.activity_donate);
toolbar = (Toolbar) findViewById(org.horaapps.leafpic.R.id.toolbar);
bar = (SeekBar) findViewById(R.id.seek_bar_donations);
setNavBarColor();
cts = new CustomTabService(DonateActivity.this, getPrimaryColor());
scr = (ScrollView) findViewById(org.horaapps.leafpic.R.id.donateAct_scrollView);
mHelper = new IabHelper(this, SecretConstants.getBase64EncodedPublicKey(getApplicationContext()));
mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
public void onIabSetupFinished(IabResult result) {
if (!result.isSuccess()) {
// Oh no, there was a problem.
Log.d("donateAct", "Problem setting up In-app Billing: " + result);
}
// Hooray, IAB is fully set up!
}
});
}
Aggregations