Android admob viewpager Fatal error

0

I have a not pretty nice problem with Admob and my android application.

Let's explain:

I use an AdView Banner in fragment 1 inside a ViewPager. When i switch to fragment 2 , viewpager keep fragment 1 as usual but the AdView inside Fragment 1 still refresh itself and cause an app crash with this error:

A/libc: Fatal signal 11 (SIGSEGV) at 0x00000038 (code=1), thread 8335

I don't know which app structure i need to used to be out of this crash.

I haven't found how to disable auto refresh ads.

I can't tell to fragment 1 to destroy its adview cause no one state is fired (onPause, onDestroy) when i switch to fragment 2.

I want to keep the viewpager but have you some best practices to implement AdView inside fragment of viewpager without have this error?

Thanks a lot for reading my post and any tips you'll give to me.

android
android-fragments
android-viewpager
admob
asked on Stack Overflow Feb 4, 2018 by Ludo MacPhee

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0