Difference between revisions of "Android Changelog"
From AdLocus
Line 4: | Line 4: | ||
* 修正無法清除過期DB問題 | * 修正無法清除過期DB問題 | ||
* 增加 InterstitialVideo 的 onNofill 與 onClose 監聽事件. | * 增加 InterstitialVideo 的 onNofill 與 onClose 監聽事件. | ||
+ | <syntaxhighlight lang="java"> | ||
+ | private InterstitialVideoReq mInterstitialVideoReq; | ||
+ | |||
+ | @Override | ||
+ | protected void onCreate(Bundle savedInstanceState) { | ||
+ | super.onCreate(savedInstanceState); | ||
+ | |||
+ | mInterstitialVideoReq = new InterstitialVideoReq(this, KEY, new VideoAdListener() { | ||
+ | @Override | ||
+ | public void onStart() { | ||
+ | //we will start an activity and rotate screen to landscape, | ||
+ | //make sure your code and your user are ready for a movie show! | ||
+ | mInterstitialVideoReq.show(); | ||
+ | } | ||
+ | |||
+ | @Override | ||
+ | public void onNofill() { | ||
+ | // 沒有廣告 | ||
+ | mInterstitialVideoReq.removeListener(); | ||
+ | } | ||
+ | |||
+ | @Override | ||
+ | public void onClose() { | ||
+ | // 使用者關閉廣告 | ||
+ | mInterstitialVideoReq.removeListener(); | ||
+ | |||
+ | } | ||
+ | }); | ||
+ | |||
+ | mInterstitialVideoReq.load(); | ||
+ | } | ||
+ | |||
+ | //透過 mInterstitialVideoReq 與 onActivityResult()實做監聽影音廣告結束事件 | ||
+ | @Override | ||
+ | protected void onActivityResult(int requestCode, int resultCode, Intent data) | ||
+ | { | ||
+ | if(requestCode == 7522335) | ||
+ | mInterstitialVideoReq.onActivityResult(requestCode, resultCode, data); | ||
+ | |||
+ | super.onActivityResult(requestCode, resultCode, data); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | 並確保 AndroidManifest.xml 中具有下列宣告 | ||
+ | |||
+ | <syntaxhighlight lang="java"> | ||
* 增加 Admob 對 Interstitial 的 onClose 事件支援. | * 增加 Admob 對 Interstitial 的 onClose 事件支援. | ||
Revision as of 14:39, 7 July 2015
v3.3.16
- 修正當 Target SDK 大於等於 Lolipop 時的ICON白圖, 底圖顏色問題.
- 修正無法清除過期DB問題
- 增加 InterstitialVideo 的 onNofill 與 onClose 監聽事件.
private InterstitialVideoReq mInterstitialVideoReq; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mInterstitialVideoReq = new InterstitialVideoReq(this, KEY, new VideoAdListener() { @Override public void onStart() { //we will start an activity and rotate screen to landscape, //make sure your code and your user are ready for a movie show! mInterstitialVideoReq.show(); } @Override public void onNofill() { // 沒有廣告 mInterstitialVideoReq.removeListener(); } @Override public void onClose() { // 使用者關閉廣告 mInterstitialVideoReq.removeListener(); } }); mInterstitialVideoReq.load(); } //透過 mInterstitialVideoReq 與 onActivityResult()實做監聽影音廣告結束事件 @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == 7522335) mInterstitialVideoReq.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data); }
並確保 AndroidManifest.xml 中具有下列宣告
* 增加 Admob 對 Interstitial 的 onClose 事件支援. == v3.3.7 == * 修正在 Android 5.0 權限衝突的問題。 更新至3.3.7需修改項目: 1. 需將專案設定為 API Level 21 (5.0.1) 以上: eclipse 設定:專案上按右鍵 -> Properties -> Android -> Project Build Target -> 勾選API Level 21 以上 -> Apply -> OK 2. 在 AndroidManifest 中移除以下三行權限: <span style="color:#000000; background-color:#FFFF00"><s><uses-permission android:name="com.adlocus.permission.SEND" /></s></span> <span style="color:#000000; background-color:#FFFF00"><s><permission android:name = "com.adlocus.permission.SEND" /></s></span> <receiver android:enabled="true" android:process=":adlocus" android:name="com.adlocus.push.PushReceive" <span style="color:#000000; background-color:#FFFF00"><s>android:permission="com.adlocus.permission.SEND"</s></span>> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <intent-filter> <action android:name="com.adlocus.action.RECEIVE" /> </intent-filter> </receiver> == v3.3.6 == * 支援線上切換優惠訊息格式 == v3.3.3 == * 新增[[Android_Video|全屏影音廣告]] * 修復背景崩潰問題 * 修復初始化 InApp Ad 時, 未執行Listener 問題 * 修復全屏靜態廣告崩潰問題 == v3.3.0 == * 新形態推播服務, 支援使用者自訂開關.