现在的位置: 首页 > Adobe
11℃
2011年07月02日 移动开发 ⁄ 被围观 6,916+
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...
阅读全文
0℃
2011年07月02日 移动开发 ⁄ 被围观 10,011+
工程项目,建立步骤如下: 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...
阅读全文
0℃
2011年07月02日 移动开发 ⁄ 被围观 2,529+
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 ...
阅读全文
0℃
2011年07月02日 移动开发 ⁄ 被围观 1,895+
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...
阅读全文
0℃
2011年07月02日 移动开发 ⁄ 被围观 1,948+
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 ...
阅读全文
2℃
2011年07月02日 移动开发 ⁄ 被围观 3,233+
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...
阅读全文
×
腾讯微博