是否有可能广告添加到Android小工具? [英] Is it possible to add ads to an android Widget?

查看:219
本文介绍了是否有可能广告添加到Android小工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着让我的小部件的免费版本,我想给广告添加到窗口小部件,这可能吗?如果又如何?

Im trying to make a free version of my widget and i would like to add ads to the widget, is it possible? if so how?

推荐答案

在小部件应用视图限于:

Views in widget apps are limited to :

AnalogClock
按键
时计
的ImageButton
ImageView的
进度条
TextView中
这些类的后代不被支持。

AnalogClock Button Chronometer ImageButton ImageView ProgressBar TextView Descendants of these classes are not supported.

所以,因为没有webiew,你不能使用admobs例如

So, as there is no webiew, you can't use admobs for instance.

不过,它看起来像其他人正在试图解决这个问题,通过使用简单的ImageButton与广告插件提供太多:
http://openx-android.sourceforge.net/

Nevertheless, it looks like other people are trying to address this issue and provide widget with ads too by using simple imageButton : http://openx-android.sourceforge.net/

亲切的问候,
斯特凡

Kind regards, Stéphane

这篇关于是否有可能广告添加到Android小工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆