11℃
2011年07月02日
⁄ 移动开发
⁄ 被围观 16,943+
airbootstap.jar 的实现机制简单来说其实就是:
通过继承Android的Activity来实现一个新的Activity(AppEntry),它通过“com.adobe.air.AndroidActivityWrapper” 封装实现了Android中Activity本身的方法,例如onResume,onPause等等,废话不说,直接上源码,相信大家浏览过一遍 就基本清楚了。
package air.app;
import java.lang.reflect.Method;
import java.net.URISyntaxException;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Act...
Adobe, AIR, Android阅读全文
0℃
2011年07月02日
⁄ 移动开发
⁄ 被围观 7,289+
工程项目,建立步骤如下:
1. 下载工程项目所需的资源文件 air_for_android-flex_4_5-air_2_6-v_1
2. 建立 Android 工程 TestAIR (注意不要勾选Create Activity,先不创建Activity)
Porject Name: TestAIR
Standard Android Platform: 2.2
Application Name: TestAIR
Package Name: com.carey
Min SDK Version: 8
3. 将下载下来的资源文件覆盖新创建工程的同名目录和文件,包括 assets 和 res,airbootstap.jar 将作为链接库
4. 删除"res/layout" 目录
5. 将 airbootstrap.jar 添加到 Build Path
6. 新建一个Clas...
Adobe, AIR, Android阅读全文
0℃
2011年07月02日
⁄ 移动开发
⁄ 被围观 3,300+
Application Licensing
Android provides APIs to help you enforce licensing policies for non-free apps in the Android Market. You might want to go read up on Android Licensing before you give this one a try.
To add Application Licensing to you AIR for Android application you first need to follow the steps outlined in the Android documentation. The broad steps are as follows:
1. Set up an Android Market publisher account
2. Install the Market Licensing Package in the Android ...
Adobe, AIR, Android阅读全文
0℃
2011年07月02日
⁄ 移动开发
⁄ 被围观 2,740+
Widgets
Widgets in Android are the mini apps that can be displayed on the home screen of the device. There is a fairly limited amount of things that can be displayed in Widgets. So unfortunately Widgets can’t be built with AIR for Android. However a custom application Widget can be packaged with an AIR for Android application. To add a Widget to an AIR for Android application you can use the default AppEntry class instead of wrapping it with another class (MainApp in my e...
Adobe, AIR, Android阅读全文
0℃
2011年07月02日
⁄ 移动开发
⁄ 被围观 2,789+
System Notifications and Services
AIR for Android applications don’t yet have an API to do Android system notifications. But you can add system notifications to your AIR for Android application through a startup hook. In order for the AIR application to communicate with the native Android APIs you must provide a bridge for the communication. The simplest way to create that bridge is using a network socket. The Android application can listen for data on the socket and then ...
Adobe, AIR, Android阅读全文
2℃
2011年07月02日
⁄ 移动开发
⁄ 被围观 4,533+
Adobe AIR provides a consistent platform for desktop and mobile apps. While consistency is very important there are times when developers need to extend beyond the common APIs. This article will walk you through how to integrate AIR for Android applications with other native APIs and functionality in the Android SDK. It covers three common use cases for native extensibility: System Notifications, Widgets, and Application Licensing.
If you’d like to follow along you will ne...
Adobe, AIR, Android阅读全文
受教了!呵呵!
adobe air 播放器可
在你的代码基础上改了下,可以
现在CSDN博客的API接口
你好,googlecode源
你好,googlecode源
亲,那你新上传的图片会到哪呢
亲,这个会卡的 第一段缓冲