After AdMob integration, The application may be doing too much work on its main thread

406 views
Skip to first unread message

Mohammed Saudi

unread,
Feb 4, 2014, 4:48:00 PM2/4/14
to google-adm...@googlegroups.com
I have adMob setup and working. Now after running the app I always get the message "The application may be doing too much work on its main thread" as information debug message. When I tried the app on 3G network not WIFI , the app UI hangs, I guess may be due to slower connection. Some times this one as well 02-04 23:44:04.612: W/Choreographer(20615): Already have a pending vsync event.  There should only be one at a time.

In my application  I have a location Service running get location updates and update the activity UI components via broadcast intent and receiver in main activity.

I tried to remove the ads to check the performance, It increased noticeably and I still can see the previous much work on main thread message. but less frequently 

Any ideas about the reasons of this and how could I solve it?

Eric Leichtenschlag

unread,
Feb 10, 2014, 6:06:35 PM2/10/14
to google-adm...@googlegroups.com
Hi Mohammed,

From the Android docs on services, there is a caution that services run on the main thread by default. If you aren't doing this already, you should move the service to a background thread.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages