Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

UI slow down With Pagination #14

Open

Description

@charlizesmith

I ran this code and the native ads in the list are sometimes working fine.
I want to achieve this with Pagination. Whenever i call below function for next page, it stuck UI (Recycleview) because may be i am calling it on Main thread.

// Load the Native ads.
 adLoader.loadAds(new AdRequest.Builder().build(), 5); 

I also used below method and it is giving good performance as compare to above.

    // Load the Native ads.
  adLoader.loadAd(new AdRequest.Builder().build()); 

I also tried with Handler, runOnUithread, Asynchtask but No success.

On Official site mention below note: [https://developers.google.com/admob/android/native/start]
Build an AdLoader
Note: Make all calls to the Mobile Ads SDK on the main thread.

Any suggestion how to solve this issue?

Activity

  1. eakteam commented on Sep 30, 2019

    @eakteam

    @charlizesmith , do you find any solution ? It is very annoying bug and cause performance issues...

  2. igor-rif-shevchenko commented on Nov 3, 2019

    @igor-rif-shevchenko

    +1, also saw this note to make all calls on the main thread. But adLoader.loadAd() takes about 100ms which is very bad... I don't understand why loadAd() has to be in UI thread? It just loads ad, not showing it.

  3. efratos1 commented on Nov 10, 2019

    @efratos1

    The same problem here. It is hurting my app performance

  4. baderkhane commented on Feb 29, 2020

    @baderkhane

    +1, same problem here

  5. cuichanghao commented on Apr 6, 2020

    @cuichanghao

    +1, same problem here

  6. tiendung717 commented on Apr 10, 2020

    @tiendung717

    +1, same issue. It make my app lagging. Please help to check

  7. zumry-newswav commented on Jun 5, 2020

    @zumry-newswav

    Have you got any answers guys ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions