Пример #1
0
 @Override
 public void onActivityPause() {
   super.onActivityPause();
   try {
     WoleSDK.getInstance().onPause();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Пример #2
0
 public void playVideo(String uri) {
   Log.d(TAG, "play video.");
   try {
     WoleSDK.getInstance()
         .play(
             mContext, mPlayer, getVid(uri), (RelativeLayout) asView(), mAdView.getAdButtonView());
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Пример #3
0
 @Override
 public void onActivityResume() {
   super.onActivityResume();
   WoleSDK.getInstance().onResume();
 }
Пример #4
0
 private void init() {
   WoleSDK.getInstance().setAdListener(mAdsListener);
 }