<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.adsame.eagle"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<!--开始声明权限 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!--声明权限结束 -->
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".AdsameAdExample1Activity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- 声明jar包中,广告点击显示的页面WebShowActivity -->
<activity android:name="com.adsame.main.WebShowActivity"/>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.adsame.eagle"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<!--开始声明权限 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!--声明权限结束 -->
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".AdsameAdExample1Activity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- 声明jar包中,广告点击显示的页面WebShowActivity -->
<activity android:name="com.adsame.main.WebShowActivity"/>
</application>
</manifest>
1111111111代码
package com.adsame.eagle;
/**
* adsame SDK 广告调用
*
*
*/
import com.adsame.main.AdsameMob;
import android.app.Activity;
import android.os.Bundle;
import android.widget.FrameLayout.LayoutParams;
import android.widget.LinearLayout;
public class AdsameAdExample1Activity extends Activity {
// adsame广告条的声明
AdsameMob adsame = null;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// adsameLinearlay找到广告显示的位置。
LinearLayout adsameLinearlay = (LinearLayout) findViewById(R.id.adsameLay);
// 初始化广告条
adsame = AdsameMob.getAdsame(this, LayoutParams.FILL_PARENT, 100);
// 把广告条加入对应的LinearLayout
adsameLinearlay.addView(adsame);
}
protected void onDestroy() {
// Activity销毁时关闭掉广告
if (adsame != null) {
adsame.closeBanner();
}
super.onDestroy();
}
}
- package com.adsame.eagle;
- /**
- * adsame SDK 广告调用
- *
- *
- */
- import com.adsame.main.AdsameMob;
-
- import android.app.Activity;
- import android.os.Bundle;
- import android.widget.FrameLayout.LayoutParams;
- import android.widget.LinearLayout;
-
- public class AdsameAdExample1Activity extends Activity {
- // adsame广告条的声明
- AdsameMob adsame = null;
-
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- // adsameLinearlay找到广告显示的位置。
- LinearLayout adsameLinearlay = (LinearLayout) findViewById(R.id.adsameLay);
- // 初始化广告条
- adsame = AdsameMob.getAdsame(this, LayoutParams.FILL_PARENT, 100);
- // 把广告条加入对应的LinearLayout
- adsameLinearlay.addView(adsame);
- }
-
- protected void onDestroy() {
-
- // Activity销毁时关闭掉广告
- if (adsame != null) {
- adsame.closeBanner();
- }
- super.onDestroy();
- }
- }
分享到:
相关推荐
Linux C语言开发2222222Linux C语言开发2222222Linux C语言开发2222222Linux C语言开发2222222Linux C语言开发2222222Linux C语言开发2222222Linux C语言开发2222222
php简单教程2222222php简单教程2222222php简单教程2222222
2021年监理资料员顶岗实习总结报告2222222.docx
公辅电气人员安全操作规程汇总(修订).doc2222222.doc
2222222.zip
2222222.doc
非常好的指纹预处理程序,在VC6.0中已通过运行。自己写的。
CSDN下载频道仅提供交流平台,并不能对任何下载内容负 下载文件中如有侵权或不适当内容,请与我们联系,我们 本站不保证本站提供的下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和...
2222222
WIFI密码破解,解析,等用途! 0 000 0000 00000 000000 0000000 00000000 000007 0007 007 0660 0987 1 1% 1/2 ...2222222 22222222 2233 22nd 23 2323 232323 234 2345 23rd 24 2424 2468 24th 25
打印时显示在磅单上 磅单抬头:打印时 显示在公司名称下面 如 : 100吨汽车衡24小时营业 或 出货单磅单底部:软件提供的部分磅单,设置了底部文字字段,可打上比如:联系电话010-2222222默认省份:省份和车号...
//2222222 // this.gs = gs; this.maxX = maxX; this.maxY = maxY; // initial matirx matrix = new boolean[maxX][]; for(int i=0; i; ++i){ matrix[i] = new boolean[maxY]; Arrays.fill(matrix[i],false...
Log.e("MainActivity", "wenxi2222222"); AlertDialog.Builder builder = new AlertDialog.Builder(mContext); Log.e("MainActivity", "wenxi2222223"); LayoutInflater inflater = LayoutInflater.from...
jsp标签说明2222222ffffffffffffff
计算机系统文件2222222人23333333
亚马逊商店工具 亚马逊网上商店的命令行工具 相关文章 要求 节点.js 安装 ...$ cd amazon-shop-tool $ npm install ... 222-2222222-2222222,2010年12月18日,¥2100,注文が確定しました,YOURNAME,暗号解読〈上〉
美图秀秀,很简单,易用,PS比较难,不会PS的,处理图片就用美图秀秀 2222222
②35979③00④00⑤00⑥00⑦003.2 第二阶段工时记录任务/人员/工时(h)①②③④⑤⑥⑦上课2222222小组会议1111111知识学习00110
②35979③00④00⑤00⑥00⑦003.2 第二阶段工时记录任务/人员/工时(h)①②③④⑤⑥⑦上课2222222小组会议1111111知识学习00110
②35979③00④00⑤00⑥00⑦003.2 第二阶段工时记录任务/人员/工时(h)①②③④⑤⑥⑦上课2222222小组会议1111111知识学习00110