Adobe Air & Adobe Flex & ActionScript & Mobile Dev & HTML5 & RIA & User Experience
家好,我是奶綠茶
最近想在 Adobe AIR App 放上 Admob 的廣告
查了一下相關文章,最好的方法還是使用原生的類別
好在 AIR3.0 後已經可以呼叫原生程式
接著就可以開始來實作。
1.首先你要先知道如何在 Android 上放 Admob
參考官方教學
https://developers.google.com/mobile-ads-sdk/download
2.使用原生程式,開發出 AIR 可以呼叫的 jar 檔
這裡要注意的是,開發時要匯入 Admob的jar
但匯出時, 並不會把該 jar 包進去
所以最後還需要下個 Command 把二個 jar 合拼成一個(這個我卡了好久)
3.AIR端使用 ExtensionContext 類別
開發工具為 FlashDevelop 4.0
加上 Ant 外掛(用來快速執行Command)
上 Ant 外掛(用來快速執行Command)

APK下載
轉載請註明出處
Related posts:
Josephine
十月 2nd, 2012 at 12:22 下午
Wonderful blog! I found it while surfing around on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to get there! Appreciate it