Code example for Activity

Methods: getPackageManager

0
		 *   - 端末初期化後に一度もGoogle Playを開いてない状態でapkをadb installして起動した場合 
		 * 
		 *  2013/5/23 
		 */ 
		 
	    final PackageManager packageManager = this.activity.getPackageManager();
	    final Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
	    List<ResolveInfo> list = packageManager.queryIntentServices(intent, 0);
	    return list.size() > 0;
	} 
	 
	private BillingManager(Activity context) {
		Log.d(kClassName, "BillingManager");
		 
		this.activity  = context;
		this.iabHelper = new IabHelper(this.activity);
		 
		this.iabHelper.enableDebugLogging(true); // TODO : Production is false : Debug is true
		 
		if (!isBillingAvailable()) { 
			PFInterface.startAlertDialog("課金制限", "Google Playアカウントを確認してください");