il mio manifest
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information:
http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
'AdMob
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="
@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
nel main:
#AdditionalRes
:\adt-bundle-windows-x86_64-20140702\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
parte di codice codice:
AdBox.Initialize2("Ad", "xx-xxx-xxx-xxxxxxxxxxxxx", AdBox.SIZE_SMART_BANNER)
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then height = 32dip Else height = 50dip
Else
If 100%x > 100%y Then height = 50dip Else height = 90dip
End If
Activity.AddView(AdBox, 0dip, 100%y - height, 100%x, height)
AdBox.LoadAd
questo e tutto ciò che uso.
fino a 6 giorni fa funzionava tutto.
dopo prova con emulatore e apparso qual messaggio di errore.
.