Download Android Apps and Games
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
[email protected]
if you need any assistance.
Relevant links
Using native extensions for Adobe AIR

AppBrain is a directory focused on discovering great apps and games. We give statistics, rankings and search options that Google Play and the App Store don't have. All trademarks are owned by their respective owners. AppBrain doesn't offer APKs or binaries, and always lets users install the official version from Google Play or the App Store.

More apps

  • Top Android apps being viewed
  • Chille: Meet & Date
  • View Mimasu
  • SCALEheight – Emojis That Pays

Android Statistics

  • Android statistics
  • Google Play Developer stats
  • Trending Android Apps
  • Top popular Apps
  • Buy the best Android phone

About AppBrain

  • Contact
  • Privacy
  • Documentation
  • DMCA takedowns
  • Articles
  • Free App-Ads.Txt Validation
© 2010-2026 - AppBrain