B4A Library New wrapper for Tap for Tap

Tap for Tap has made their own UPDATED wrapper and they have promised to keep it updated.



Tap for Tap has upgraded their SDK.
They have added Appwall and Interstitials. They have also changed from using a key for each of your apps to one key for all your apps.

So a new wrapper is needed and here it is.

Instructions:

Sign up with Tap for Tap (if not already signed up)
Download the SDK from Tap for Tap.
Copy TapForTap.jar to your Libraries folder.
Download the attached wrapper.
Copy MaxTapForTap.xml and MaxTapForTap.jar to your Libraries folder.
Check MaxTapForTap in your libraries tab.
Add the following to your app:


B4X:
Sub Globals
   Dim AdTap as TapForTap
End Sub
    
Sub Activity_Create(FirstTime As Boolean)

   adtap.Initialize("Adtap", "Your Tap for Tap ID")
   Activity.AddView(adtap, 50%x-160dip, 0, 320dip, 50dip)   '(for banners only!)
   adtap.LoadInterstitial  '(for interstitials)
   adtap.LoadAds      '(for banners)
   adtap.LoadAppWall      '(for appwalls)

End Sub


Sub Activity_Pause (UserClosed As Boolean)

   If UserClosed=True Then
    adtap.StopLoadingAds
    adTap.StopEventListener
   End If

End Sub

    
Sub adtap_receivead

   'Do something       

End Sub


Sub adtap_failedtoreceivead

   'Do something       

End Sub

    
Sub adtap_tapad

   'Do something       

End Sub


and add the following in the Manifest editor:

'Tap4Tap
B4X:
AddApplicationText(
<activity android:name="com.tapfortap.TapForTapActivity"/>
)
----


--------------------------------------------------
Thanks goes to Magicuser68 and Erel :sign0188:
--------------------------------------------------

Wrapper udated with TapForTap SDK 2.02
18 JAN 2013 Updated to work with TapForTap SDK.2.1.1
 

Attachments

  • MaxTapForTap.zip
    3.9 KB · Views: 256
Last edited:

sdixon

Member
Licensed User
Longtime User
Thanks

Funny things happen when everything is rebooted. Computer, phone, my mind.

The TapforTap wrapper works as promised.

Thanks
 

MaxApps

Active Member
Licensed User
Longtime User
I have convinced Tap for Tap to make a wrapper for Basic4Android, so it will always be updated for their newest SDK.

Their wrapper is now ready. You can find it under the documentation at their website Mobile Ad Network | Tap for Tap

Kind regards
Jakob
MaxApps
 

magicuser68

Member
Licensed User
Longtime User
Hey MaxApps,

So Tap for Tap just upgraded to version 3. Do you know if they will be updating soon for B4A?

Thanks
 

MaxApps

Active Member
Licensed User
Longtime User
Hi Magicuser68

I talked to Eric Dyck (Tap for Tap) yesterday and he says that they will have a wrapper ready within a week or so.

Kind regards
Jakob
MaxApps
 

magicuser68

Member
Licensed User
Longtime User
MaxApps,

Looks like they created the plugin. But now I am unable to do ad-mob mediation. I tried for 3 hours and I have given up. Not sure how to fix this.

Thanks,

- Scott
 

MaxApps

Active Member
Licensed User
Longtime User
I don´t know about mediation.
If you ask Tap for Tap, they are normally good at helping.

Kind regards
Jakob
 

hookshy

Well-Known Member
Licensed User
Longtime User
i does not work for me ...
I got java.lang.noclassdeffound.error

In their sdk the added to some resurces ...
an xml file on values folder and an icon on drawable ... ??? I think this is needed ..
I realy whanted to make this work but still geting no class error... the ide does not
find tapfortap.jar resurce ..
hope to find a way somehow !!!:(
 
Last edited:
Top