本文整理汇总了Java中com.jirbo.adcolony.AdColonyVideoAd类的典型用法代码示例。如果您正苦于以下问题:Java AdColonyVideoAd类的具体用法?Java AdColonyVideoAd怎么用?Java AdColonyVideoAd使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AdColonyVideoAd类属于com.jirbo.adcolony包,在下文中一共展示了AdColonyVideoAd类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onResume
import com.jirbo.adcolony.AdColonyVideoAd; //导入依赖的package包/类
@Override
protected void onResume() {
super.onResume();
// startAppAd = new StartAppAd(this);
// startAppAd.loadAd();
adColonyVideoAd = new AdColonyVideoAd();
if (CallerFlashlight.LOG) Log.d(TAG, "onResume");
}
示例2: handle
import com.jirbo.adcolony.AdColonyVideoAd; //导入依赖的package包/类
@Override
public void handle()
{
AdFlakeLayout adFlakeLayout = _adFlakeLayoutReference.get();
if (adFlakeLayout == null)
return;
Activity activity = adFlakeLayout.activityReference.get();
if (activity == null)
return;
@SuppressWarnings("unused")
String appID = _ration.key;
String zoneID = _ration.key2;
prepareForRation(_ration, adFlakeLayout);
AdColony.addAdAvailabilityListener(this);
_interstitial = new AdColonyVideoAd(zoneID);
_interstitial.withListener(this);
if (!_interstitial.isReady())
{
adFlakeLayout.adapterDidFailToReceiveVideoAdWithError(this, "ad not ready");
}
else
{
adFlakeLayout.adapterDidReceiveVideoAd(this);
}
}
示例3: onCreate
import com.jirbo.adcolony.AdColonyVideoAd; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) { //
super.onCreate(savedInstanceState);
if (CallerFlashlight.LOG) Log.d(TAG, "onCreate");
addPreferencesFromResource(R.xml.donateprefs);
CallerFlashlight callerFlashlight = (CallerFlashlight) getApplication();
// StartAppAd.init(this, "108632531", "208372780");
// AppFlood.initialize(this, "Thib0u8GfGgfXsLX", "6GX8sMOv1791L521de8ea", AppFlood.AD_ALL);
// AdColony.configure(this, "version=1,store:google", "appc0bebfc9f4a3489fb82153", "vz9bf8a5eb30ef477798b82b", "vz81c21390fa4e4b25aaa8ed", "vzf738e644f1394a9abcf4cf");
// startAppAd = new StartAppAd(this);
// startAppAd.loadAd();
callerFlashlight.configureAdColony(this);
connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
adColonyVideoAd = new AdColonyVideoAd();
interstitialAdMob = new InterstitialAd(this, "ca-app-pub-4450409123751393/1956296862");
// appoftheday = findPreference("appoftheday");
// startapp = findPreference("startapp");
Preference adcolony = findPreference("adcolony");
Preference adMob = findPreference("adMob");
Preference paypal = findPreference("paypal");
// startapp.setOnPreferenceClickListener(this);
// appoftheday.setOnPreferenceClickListener(this);
adcolony.setOnPreferenceClickListener(this);
adMob.setOnPreferenceClickListener(this);
paypal.setOnPreferenceClickListener(this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
getActionBar().setDisplayHomeAsUpEnabled(true);
}
AlertDialog.Builder builder1 = new AlertDialog.Builder(this);
builder1.setTitle(getResources().getString(R.string.donate_dialog_title));
builder1.setMessage(getResources().getString(R.string.donateDialog));
builder1.setCancelable(true);
builder1.setIcon(getResources().getDrawable(android.R.drawable.ic_dialog_info));
builder1.setPositiveButton(getResources().getString(R.string.donate_dialog_ok),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}