Skip to content

Instantly share code, notes, and snippets.

View first087's full-sized avatar

Artit Kiuwilai first087

View GitHub Profile
@first087
first087 / MainActivity.java
Last active January 13, 2019 18:01
Android Application : In-app Billing Example with Utility. Test app at https://play.google.com/store/apps/details?id=com.ethanf.in_app_billing_ex2
package com.ethanf.in_app_billing_ex2;
import com.ethanf.in_app_billing_ex2.util.IabHelper;
import com.ethanf.in_app_billing_ex2.util.Inventory;
import com.ethanf.in_app_billing_ex2.util.IabResult;
import com.ethanf.in_app_billing_ex2.util.Purchase;
import com.ethanf.in_app_billing_ex2.util.SkuDetails;
import android.os.Bundle;
import android.app.Activity;
@first087
first087 / MainActivity.java
Last active February 14, 2024 00:22
Android Application : In-app Billing Example. Test app at https://play.google.com/store/apps/details?id=com.ethanf.in_app_billing_ex
package com.ethanf.in_app_billing_ex;
import java.util.ArrayList;
import org.json.JSONException;
import org.json.JSONObject;
import com.android.vending.billing.IInAppBillingService;
import android.os.Bundle;
@first087
first087 / LoadAdsBeforeEnableFeatureGooglePlayServices.java
Created February 15, 2014 05:50
Android Application : Load Ads (AdMob) Before Enable Feature (Google Play Services Library)
package com.ethanf.admob.enablefeature;
import android.content.Context;
import android.util.Log;
import android.view.View;
import com.google.android.gms.ads.*;
public class ExActivity extends Activity {
private Context context;
@first087
first087 / frmRandomNumber.Designer.vb
Last active August 29, 2015 13:56
RandomNumberEx on VB.NET 3.5
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frmRandomNumber
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
@first087
first087 / LoadAdsBeforeEnableFeature.java
Created November 27, 2013 09:14
Android Application : Load Ads (AdMob) Before Enable Feature
package com.ethanf.admob.enablefeature;
import android.content.Context;
import android.util.Log;
import android.view.View;
import com.google.ads.*;
import com.google.ads.AdRequest.ErrorCode;
public class ExActivity extends Activity {