Android Question Using Admob without FIrebase

hanyelmehy

Active Member
Licensed User
Longtime User
how i can use Using Admob without FIrebase ,using last google play service,and B4A 6+
 

hanyelmehy

Active Member
Licensed User
Longtime User
When i use ADmob v2 with B4x 6+ using these code:
B4X:
#AdditionalJar: com.google.android.gms:play-services-ads

For Manifest :
'////////////////////////////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"/>
)

for code
AdView1.Initialize("Ad", "xxxx")
    Activity.AddView(AdView1, 0dip, 100%y-50dip, 100%x, 50dip)' AdView1.LoadAd 'loads an ad
    AdView1.LoadAd

it work and ads show ,but it hang up after less than minute and log send (Fatal signal 11 (SIGSEGV) at 0x00000040 (code=1))
this happens in debug and release mode (admob banner cause this because when removing it every thing stable)
Note :test done on devices that have android 4 and 6 (compilation done using android 23)(google play service v37)
 
Upvote 0

hanyelmehy

Active Member
Licensed User
Longtime User
It is most probably not related to Firebase.

Can you upload the project? And post the full error message from the logs?
i am not use Firebase ,when i use admob with Firebase every thing work fine ,the target is to use admob without Firebase which i try in last code i send
Thank you for your help
 
Upvote 0
Top