Admbob banner crash my app when clicked

holdemadvantage

Active Member
Licensed User
Longtime User
Hi all, for some reasons Adview Admob crashes my app when clicked.
I'm sure i've done the same with all my other apps (they work) so i cannot find why.
Whe i click on admob banner my app crashes, i paste the logs

HTML:
START {cmp=com.holdemadvantage.guessflags/com.google.ads.AdActivity (has extras) u=0} from pid 961


readFully was waiting for 403440 bytes, got 49152 


readFully was waiting for 354288 bytes, got 49152 
readFully was waiting for 305136 bytes, got 49152 
readFully was waiting for 255984 bytes, got 35044 
readFully was waiting for 220940 bytes, got 49152 
readFully was waiting for 171788 bytes, got 49152 
readFully was waiting for 122636 bytes, got 49152 
readFully was waiting for 73484 bytes, got 32768 
readFully was waiting for 40716 bytes, got 16876 
readFully was waiting for 23840 bytes, got 16384 
GC_FOR_ALLOC freed 233K, 7% free 11709K/12487K, paused 11ms, total 12ms
** Activity (main) Pause, UserClosed = false **


VM exiting with result code 0, cleanup skipped.
Process com.holdemadvantage.guessflags (pid 961) has died.
Scheduling restart of crashed service com.holdemadvantage.guessflags/anywheresoftware.b4a.samples.httputils2.httputils2service in 5000ms
Force removing ActivityRecord{a6cce008 com.holdemadvantage.guessflags/.main}: app died, no saved state
WIN DEATH: Window{a6def138 com.holdemadvantage.guessflags/com.holdemadvantage.guessflags.main paused=true}
WIN DEATH: Window{a6de5c10 com.holdemadvantage.guessflags/com.holdemadvantage.guessflags.main paused=true}
Start proc com.holdemadvantage.guessflags for activity com.holdemadvantage.guessflags/com.google.ads.AdActivity: pid=1119 uid=10052 gids={3003, 3002, 1015, 3001, 1028}
error opening trace file: No such file or directory (2)


Could not get currentAdManager.
eglSurfaceAttrib not implemented


Got RemoteException sending setActive(false) notification to pid 961 uid 10052
GC_CONCURRENT freed 642K, 12% free 10321K/11719K, paused 0ms+0ms, total 5ms


TextureCache::get: create texture(0xb9150d30): name, size, mSize = 35, 324, 726468
TextureCache::get: create texture(0xb913c2c0): name, size, mSize = 36, 324, 726792
TextureCache::get: create texture(0xb9183a30): name, size, mSize = 37, 20736, 747528


TextureCache::get: create texture(0xb917c280): name, size, mSize = 38, 20736, 768264
TextureCache::get: create texture(0xb9179880): name, size, mSize = 40, 20736, 789000
TextureCache::get: create texture(0xb9188788): name, size, mSize = 41, 20736, 809736
TextureCache::get: create texture(0xb9191f88): name, size, mSize = 42, 20736, 830472
TextureCache::get: create texture(0xb9193510): name, size, mSize = 43, 20736, 851208
TextureCache::get: create texture(0xb91dda08): name, size, mSize = 44, 345744, 1196952
No longer want com.android.mms (pid 761): hidden #16


No listener is left

Someone had the same problem? Thank in advance for your help.
 

holdemadvantage

Active Member
Licensed User
Longtime User
Well, after a while maybe i have found...

in activity pause i have

MediaPlayer1.Stop
MediaPlayer2.stop
ExitApplication

and my app close (not crash) when paused, unfortunately when i click on admob banner Activity_Pause become active and app closed without displaying site, How is it possible to not stop app when banner is clicked and also kill app when home button was clicked?
 
Upvote 0

holdemadvantage

Active Member
Licensed User
Longtime User
maybe fixed by myself, i change activity_pause into
HTML:
Sub Activity_Pause(UserClosed As Boolean)
'Log("Pause") 
'Activity.Finish
'Return
MediaPlayer1.Stop
MediaPlayer2.stop
If UserClosed Then
        Activity.Finish
        ExitApplication
    End If

End Sub

I will try this way :)
 
Upvote 0
Top