William,
I have tested our SDK on the Samsung Nexus S and the Samsung Fascinate
(part of the Galaxy S line), both of which have similar hardware to
the Samsung Galaxy S. After installing an app, there is considerable
time spent in the WebView constructor (I saw anywhere from 0.5-2
seconds). I believe this is because it has to do a bunch of one-time
setup things like create a cookie space for the app and things like
that. This only occurs on the first launch after installing an app, or
after clearing the app data, as you mentioned. Every time after that,
even if the app is killed and restarted, it takes somewhere around
30-50 milliseconds.
Unfortunately, there's not much we can do. The WebView must be created
on the UI thread, and the first WebView created in an app can take a
while.
The only workaround I can think of is to create a WebView early on in
your app before creating the AdView (e.g. in a loading screen or main
menu screen before the main part of the app). This should get the one-
time setup stuff out of the way. Again, you should only experience
this lag the first time you run the app after installing or clearing
the data, so it shouldn't affect most users more than once. This is
definitely a pretty hack-ish solution though. I'm sorry there's not
much else we can do.
Also, fyi, the fundamentals example is located here:
http://dl.google.com/googleadmobadssdk/examples/android-banner-essentials.zip.
There is a link to it on this page:
http://code.google.com/mobile/ads/docs/android/fundamentals.html.
Thanks,
-Tim
On Apr 26, 6:47 pm, William Ferguson <
william.ferguson...@gmail.com>
wrote:
> Tim, on a 2.2 emulator I only see a 400-600 millisecond lag the first
> time the app is started after being freshly installed or having its
> data cleared.
> Which is about the same lag that I get with the AdMob library from
> 20101012 on my phone (Samsung GalaxyS running 2.2).
>
> If I saw a similar lag running 4.0.4 on my phone I'd be happy.
> But plugging that exact same APK into my phone and the time to create
> the AdView was 7.5 seconds.
> Like I said that doesn't occur with the earlier AdMob library.
>
> I know the GalaxyS has a very slow write to disk. I have had to be
> very careful when implementing my app to ensure that all disk bound
> operations are handled in a non-ui thread.
> Since the GalaxyS is such a popular phone (and I happen to have one
> myself) I can't really ignore the problem.
> Any chance you can test it on a GalaxyS?
>
> Point me to the Android Fundamentals example (I couldn't find what you
> meant) unless itshttp://
code.google.com/mobile/ads/docs/android/fundamentals.html