Basic4Android Plugin


Step 1)

Register at, once you are registered create and add new application and choose the type of ad you will be using. You will receive a Zone ID for each type of ad you create.


Step 2)

Download the latest Tapit SDK, Unzip it to a safe location anywhere on your Desktop.

Download  Basic4Android Plugin Documentation 


Step 3)

Download the TapitAds_V1.3.jar and TapitAds_V1.3.xml files and copy this files along with the TapitAdView.jar file to your additional libraries folder in C:\Program Files (x86)\Anywhere Software\Basic4android\Additional Libraries.


Step 4)

Copy the “tapit_interstitial_close_button_normal.png” and “tapit_interstitial_close_button_pressed.png”  images to the res/drawable folder of your project files and flag them as read only, otherwise Basic4Android will delete this files from the folder everytime. This images are used by the library as the close button images for the interstitial Ads. Do Not rename files!

On the Tools menu in Basic4Android click on clean project before running the application, this causes the two added images to be added to the file.


Step 5)

On the right side of Basic4Android under the Libs tab select the TapitAds_V1.3 library.


Step 6)

You are now ready and set up to start using Tapit Ads library, follow the example below for more information.



Tapit Ads Basic4Android example.

Sub Globals

       'These global variables will be redeclared each time the activity is created.

       'These variables can only be accessed from this module.

Dim tap As TapitAd

Dim AdAlert, Full_Screen, Interstitial, VideoAd, Offer_Wall As Button

End Sub


Sub Activity_Create(FirstTime As Boolean)

tap.Initialize("Banner", "1234")






Activity.AddView(tap, 0, 0, Activity.Width, 100)

End Sub


Sub AdAlert_Click


End Sub


Sub Full_Screen_Click


End Sub


Sub Interstitial_Click


End Sub


Sub VideoAd_Click


End Sub


Sub Offer_Wall_Click


End Sub



Open and look for the in the library of the screen.       


Permissions: The following permissions are required in your XML file. android.permission.INTERNET, android.permission.ACCESS_NETWORK_STATE, android.permission.READ_PHONE_STATE, android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_COARSE_LOCATION. This permissions are already declared in the library, there is no need to add them manually, or through the manifest editor in Basic4Android.


Troubleshooting: Please refer to   unfiltered logs to determine what may cause failure to load ads. Make sure that all   three required files are placed inside the Additional Libraries folder in the Basic4Android folder. TapitAds.jar, TapitAds.xml and TapitAdView.jar files. Make sure the TapitAds library file is checked in the libs tab to the right of the screen in Basic4Android IDE. Make sure that this attributes are added in the XML file.

For support refer to Basic4android forum or Email Tapit Support

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk