Status bar area not covered when activity is resumed

by groob » Wed, 11 May 2011 04:42:35 GMT

Sponsored Links

I'm experiencing very nasty bug trying to implement Admob in my
I thought the problem is in my code, but after some investigation I
found it present also in Android-Banner-Essentials example (available
for download here: )
I wonder if anyone ever met this problem or maybe knows how to deal
with it.

Basically, when application has both status and title bar disabled, it
should use full screen.
Banner Essentials example displays nothing but Admob banner on the
very top of area available.
I downloaded the example, changed only two things:
- added my publisher ID to compile properly and receive any ads ;)
- added one param to activity's manifest to disable title and status

Compiled binary, no matter what device is it launched on (tried Nexus
One, G1, Desire, different Android versions), is affected with the
same issue:
- when ad banner is displayed press Home,
- once taken back to home screen press and hold Home to see recently
launched apps,
- select back Banner Essentials app.
My tests reveal that with 50% reproduction chance Admob banner doesn't
go back to its position -the very top of the screen.
To show better what I mean I prepared three screenshots: 

Important notices:
- when app is resumed normally, banner is displayed just below status
bar, and slides up until is aligned to the top screen border,
- when error appears the banner doesn't move at all,
- I couldn't reproduce the issue with any other interrupt (pressing
Back, Power Button),
- I think it may be somehow connected to gaining/losing foucs (see

My app is bit more complex than Banner Essentials so I started with
searching the issue in my code, with no luck, thus tried to simplify
the situation as much as possible and here are the results.

Does anyone know what may be causing the problem? Maybe some
additional flags or properties has to be set to handle this behaviour?

Any advice will be appreciated.



Other Threads

1. how to remove spacing from a bunch of buttons.

I want buttons flush against each other with no space in between - I
do this:

        <LinearLayout xmlns:android="
android:layout_width="fill_parent" android:layout_height="53px"
            android:padding="0px" android:horizontalSpacing="0px">

            <Button android:id="@+id/Button1" android:layout_weight="1"
android:layout_width="0px" android:layout_height="53px">

            <Button android:id="@+id/Button2" android:layout_weight="1"
android:layout_width="0px" android:layout_height="53px">

            <Button android:id="@+id/Button3" android:layout_weight="1"
android:layout_width="0px" android:layout_height="53px">


but there is still spacing!


2. Dell's Android Phone Spotted, Spec List Included

Ah, the Dell (Dell) smartphone. This device has been talked about --
though rarely seen -- for a full 30 months. First it was to run
Windows Mobile, then Android. Now, we have some pictures of it, and a
pretty solid list of features.

We have The Boy Genius Report's ninjas to thank for this information.
According to the informants, Dell's Android handset is ready for
launch in the Chinese market. Here's the spec list:

    * Quad-band GSM/GPRS/EDGE class 12
    * Size: 68.6cc
    * 103g grams weight
    * Dimensions: 58 x 122 x 11.7mm
    * Display: 3.5-inch nHD 640x360 LCD, 18-bit, 262K colors
    * OTA capable
    * Microsoft (NSDQ: MSFT) Exchange support
    * Google (NSDQ: GOOG), AIM, Yahoo (NSDQ: YHOO) and MSN IM support
    * 3 megapixel auto-focus, flash, 8x digital zoom camera with 30
frames per second video shooting mode, built in photo editor
    * USB 2.0, Bluetooth 2.0+EDR
    * A-GPS
    * On-screen QWERTY keyboard, hardwriting recognition, multi-touch
    * MicroSD slot

Not a bad list of features. Too bad it only runs EDGE data, but 3G is
still being deployed by Chinese network operators.

Either way, don't expect to see this device in the U.S. any time soon.
Dell was shot down by U.S. network operators when it shopped its
smartphone around. According to reports, the Dell-branded device was
"too dull.";jsessionid=YYWIEJ2IWPB5ZQE1GHRSKHWATMY32JVN

3. android activity crashing after waking up from sleep

4. Simply touching screen reduces fps

5. Using DDMS to send location updates

6. how to improve gps accuracy

7. AlphaAnimation not working! Help!?