If you are looking for third-party integration (like cross-platform scripting or mediation), please check the Dashboard in order to download the appropriate plug-in. Dedicated documentation is included inside each archive file.

Adding Appsfire ads to your Android app with Eclipse (for both pure Java, and C/C++ NDK applications)

If you are building your Android app with ANT, please read "Setup Your Project (ANT)" instead.

Import the library into your project


  • Unpack the Appsfire Ad SDK or update it from Github
  • In your Eclipse project, double-click on AndroidManifest.xml in your project to open it, click on the Permissions tab, click on Add, and add the following permissions:
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE

Alternatively, you may also click on the AndroidManifest.xml tab and edit the manifest to add the permissions next to the tag, before the tag:

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

  • Create a libs folder in your app project if you do not already have one
  • Right-click on your project, choose Properties.
  • Select “Java Build Path”, click Libraries, then "Add External JARs..." then locate and choose afAdSdk.jar from the unpacked Appsfire Android SDK
  • Locate and copy the afAdSdk.jar.properties file from the unpacked SDK to the libs folder of your Eclipse project
  • Locate and copy the afAdSdk-doc folder from the unpacked SDK to the libs folder of your Eclipse project
  • Fully quit and relaunch Eclipse; this step is necessary to ensure that the Javadoc for the library that you just copied, is taken into account by Eclipse.

Please refer to the appsfire_simpleSushiApp project in the SDK, for an example of building an app with Eclipse that uses Appsfire Ads.

You are now ready to import the SDK classes into your app.