Missing map!

by MartinM » Wed, 21 Apr 2010 18:39:57 GMT

Sponsored Links
 I have a basic working GoogleMap app, which I've copied and made some
changes to. However, hardly any map is drawn, and I can't see why.
Otherwise the app works OK - if I Geo Fix the map moves (I lose the
map I have and just get white with grid, plus a green dot as expected)

Piccy at:    http://www.it-helps.co.uk/nomap.jpg 

I'm sure it's an obvious error, hopefully easy for you guys to spot ;)


Missing map!

by Mark Murphy » Wed, 21 Apr 2010 18:53:48 GMT


That looks like an Internet connectivity issue. I run into that with the
Google Maps application if I try getting maps over EDGE instead of 3G or
WiFi. The fact that you are getting some tiles, just not all, means it
should not be a programming problem (unless you have some infinite loop
somewhere that is tying up the CPU).

Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Beginning Android 2_ from Apress Now Available!


Sponsored Links

Missing map!

by MartinM » Wed, 21 Apr 2010 19:31:31 GMT

 Thanks Mark - a sensible observation, but the original app works fine
still !

I've also had a script running on a remote server for a few hours that
is still OK, plus the internet connection is a very good one.

Maybe there is a problem somewhere on the net which will be OK later.


Missing map!

by MartinM » Wed, 21 Apr 2010 22:11:23 GMT

 OK, may be unrelated, but am also having problems with
geoCoder.getFromLocationName which thows 'Unable to parse response
from server'. Seems to be a common problem, but no solution found!
Could the cause of this be the cause of my map problems ?
I do get

04-21 14:00:21.287: ERROR/ActivityThread(5222): Failed to find
provider info for com.google.settings

which I'm not sure is relevant or not.

 protected GeoPoint GetPointFromAddress(String strAddress)
      Geocoder geoCoder = new Geocoder(this, Locale.getDefault());
      try {
        List<Address> addresses = geoCoder.getFromLocationName(
                        strAddress, 5);
        if (addresses.size() > 0) {
            GeoPoint gp = new GeoPoint(
                    (int) (addresses.get(0).getLatitude() * 1E6),
                    (int) (addresses.get(0).getLongitude() * 1E6));
            return gp;
      } catch (IOException e) {
      return null;

> >

Missing map!

by MartinM » Wed, 21 Apr 2010 23:01:33 GMT

 Hmmm it appears my old apps don't work today. Initial map is OK, but
any movement results in white space, so no updates.

How can the initial map be OK if the google server isn't accessible?
Does it get cached somewhere (I have restarted the emulator and

> > >

Missing map!

by Mark Murphy » Wed, 21 Apr 2010 23:06:49 GMT


Google Maps is a proprietary component, so we do not know much of the
details of how it works.

Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in US: 14-18 June 2010:  http://bignerdranch.com 


Missing map!

by MartinM » Fri, 23 Apr 2010 18:40:18 GMT

 All working fine today. Must've been a Google problem. Phew :)


Other Threads

1. Is it ever OK to use AbsoluteLayout?

I understand the problems with assigning a fixed position to UI
components, but I would like to use AbsoluteLayout in a way such that
the position of the components are chosen dynamically, calculated
based on the screen size.

Here is why I am thinking this may be easiest:

I want to display a nXm grid of imageViews on the screen (n,m chosen
by the user) with 0 padding betweeen the imageViews.  With
absoluteLayout, I could easily choose the size of the imageViews and
in a way that maximizes the amount of the screen that is used.

The reason that using relativeLayout or LineraLayouts may not work for
this is because when a user touches an image in this grid, I would
like it to "pulse" (quickly scale larger than back to its normal
size).  If I scale an imageView using realtive or linear layout, it
would resize the adjacent imageViews (since the padding is 0), which I
don't want.  I would prefer permitting temporary overlapping of the

This is currently the approach I have taken, except instead of
changing the position of imageViews, I am just drawing bitmaps to the
canvas at the locations I calculated.  I can't use the animation
framework, however, on bitmaps that I draw to a canvas.

Is this an acceptable use for AbsoluteLayout, or is there a better way
to achieve what I want to do here?


2. is this a bug?

This image is for Droid which has Android 2.01 on it
Is the Default picture for contact suppose to be upside down?



3. Is there any way to call start Main Activity from a Java program

4. Watch Dvd Movies.....

5. Is there any way to call start Main Activity from a Java program

6. getSupportedPictureSizes() for video?

7. EMMA Code coverage and JUnit