コード例 #1
0
  public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
    // TODO Auto-generated method stub
    LiLogger.logWarning(Tag, "Clicked");
    if (TabsFragmentActivity.clickEnabled) {
      VirtualGood item = vgList.get(position);
      if (item.VirtualGoodMainCurrency == 0) {
        item.buyVirtualGoods(getActivity(), TabsFragmentActivity.purchaseCallback);
      } else {

        item.buyVirtualGoods(
            1,
            LiCurrency.MainCurrency,
            new LiCallbackVirtualGoodRequest() {

              @Override
              public void onActionFinisedSuccessfully(LiIapAction liIapAction, VirtualGood item) {
                // TODO Auto-generated method stub
                TabsFragmentActivity.refreshUI();
              }

              @Override
              public void onActionFailed(
                  LiIapAction liIapAction, VirtualGood item, LiErrorHandler errors) {}
            });
      }
    }
  }
コード例 #2
0
 @Override
 public void onResume() {
   super.onResume();
   LiLogger.logInfo("TABS Virtual", "on resume");
 }
コード例 #3
0
 @Override
 public void onPause() {
   super.onPause();
   LiLogger.logInfo("TABS Virtual", "on pause");
 }