AppBrain Best Android Apps
AppBrain | Docs
  • Apps
  • Statistics
  • Docs
  • Developers
  • Get SDK
  • Sign up
  • Log in

General

  • Introduction
  • Privacy policy
  • About AppBrain
  • HTML widgets
  • Embeddable Android app widgets

Publishers

  • AppBrain SDK
    • Getting started
    • Ad unit overview
    • Banners
    • Interstitial
    • ListView ads
    • Extra features
    • Integration with other SDKs
      • AdMob
      • MoPub
      • Unity
      • Adobe AIR
    • Integration policy
    • Javadoc
  • Resources
  • Terms of service
  • FAQ

Advertisers

  • Resources
  • Terms of service
  • FAQ

Intelligence

  • Insights
  • Subscriptions
  • SDK downloads
  • Phone downloads
  • Terms of service

AppBrain API

  • Using the AppBrain API
  • API specification
  • Pricing
  • Promotion campaigns
  • Reporting
  • AppLinks TOS
Search

Using the AppBrain SDK in Adobe AIR

To use the AppBrain SDK from an Adobe AIR app you can use our Adobe AIR native extension. This ANE-file is used in your project instead of the usual AppBrain JAR.

Setting up your app

  • Contact us at contact@appbrain.com to get the AppBrain AIR native extension (ANE) file.

  • Add the file appbrain-sdk.ane to your project (see Adobe documentation).

In your Adobe AIR Application Descriptor File, find the <android> tag and make sure the following two permissions are enabled inside the <manifest> tag:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Then add the necessary AppBrain tags. These need to be inside the <application> tag, so if the <application> tag isn’t present yet, add it:

<application
    android:enabled="true"
    android:debuggable="true" >
    <!-- AppBrain SDK -->
    <activity
        android:name="com.appbrain.AppBrainActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
    <service android:name="com.appbrain.AppBrainService" />
    <service
        android:name="com.appbrain.AppBrainJobService"
        android:permission="android.permission.BIND_JOB_SERVICE" />
</application>

Calling AppBrain functions

Now you can call AppBrain methods from your ActionScript code. Make sure to call init() the moment your application starts:

var appBrain:AppBrainExtension = new AppBrainExtension();
appBrain.init();

It is recommended to show the interstitial when your app exits. You can do this by calling:

appBrain.maybeShowInterstitial();

Note that the AppBrain AIR extension is currently in beta stage and other features may still be missing.

Please contact us directly at
contact@appbrain.com
if you need any assistance.
Relevant links
Using native extensions for Adobe AIR

More apps

  • Top Android apps being viewed
  • Download NovelBin
  • Nigat Tips APK
  • Apyar Kar All Kar 2025 APK

Android Statistics

  • Android statistics
  • Google Play Developer stats
  • Trending Android Apps
  • Top popular Apps

About AppBrain

  • Contact
  • Blog
  • Privacy
  • Documentation
  • Articles
  • How to improve the earnings of your ad units
© 2010-2024 - AppBrain