当前位置: 首页>>代码示例>>Java>>正文


Java AdColonyVideoAd类代码示例

本文整理汇总了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");
}
 
开发者ID:spirosbond,项目名称:CallerFlashlight,代码行数:11,代码来源:Donate.java

示例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);
	}
}
 
开发者ID:MADEAPPS,项目名称:AdFlake-Client-Android,代码行数:33,代码来源:AdColonyVideoAdsAdapter.java

示例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();

}
 
开发者ID:spirosbond,项目名称:CallerFlashlight,代码行数:49,代码来源:Donate.java


注:本文中的com.jirbo.adcolony.AdColonyVideoAd类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。