Adding Appsfire ads to your Android app with ANT

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

  • Unpack the Appsfire Ad SDK or update it from Github
  • Open the AndroidManifest.xml file for your project in your text editor, and add the following permissions above the tag:

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

  • Create a libs folder for your app if you do not already have one
  • Locate and copy the following file from the unpacked SDK to your app's libs folder: `afAdSdk.jar

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

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