quinta-feira, 15 de maio de 2014

Mobvista Basic4Android Lib

Another Basic4Android lib for all the die hard android money makers lovers. According to the folks at the makingmoneywithandroid forum, MobVista this days is one of the best ad networks available. This lib exposes all of the ad formats offered by Mobvista : banner, floating adView and interstitials. They now have a very nice 3d full screen ad.

This lib is free to everyone that registers via my referral link. Just mail me the registered username in MobVista and i'll send you the required files.

Sample project
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Dim banner As MobVistaBanner
    Dim bubble As MobVistaFloatAdView
    Dim interstitial As MobVistaInterstitial
   End Sub
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Dim b1, b2, b3 As Button
   End Sub
Sub Activity_Resume
    bubble.onResumeEnd Sub
Sub Activity_Pause (UserClosed As Boolean)
    bubble.onPauseEnd Sub
Sub b1_click
    interstitial.showOverlayAd("")End Sub
Sub b2_click
    interstitial.showAppWall("")End Sub
Sub b3_click
    interstitial.showFullScreenAd("")End Sub

A compiled version of this app can be found here.