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. kernel porting procedure feedback


I am in the process of creating a Samsung S3C6410 Android kernel that is 
compatible with Gingerbread. The procedure that I am using seems to be working 
but there must be something more efficient given the power of GIT.

Goal: Create a S3C6410 Gingerbread kernel

1. android/kernel/samsung - linux-2.6.35, S3C6410 does *not* compile
2. kernel.org/linux-2.6-samsung.git (master), S3C6410 *does* compile, this is 
3. android/kernel/common - linux-2.6.36 branch

GIT Procedure Overview:

1. git clone git://android.git.kernel.org/kernel/samsung.git
        - retrieves linux-2.6.35 with a working "herring" configuration

2. git remote add kernel.org 
        - remote tracking of Samsung LSI kernel as *kernel.org*

3. git fetch kernel.org
        - retrieve the remote repository information

4. git remote add android-common git://android.git.kernel.org/kernel/common.git
        - remote tracking of Android common kernel as *android-common*

5. git fetch android-common
        - retrieve the remote repository information

6. git branches -r (shows the following)

          origin/HEAD -> origin/android-samsung-2.6.35

7. To start the upgrade process, merge a S3C6410 kernel tree that compiles into 
the current Andoid Samsung tree:
        git merge kernel.org/master

8. Start resolving the conflicts.

This seems to be working but it also seems very inefficient. A preferred method 
would be something like.

        git merge android-common/android-2.6.36 into kernel/samsung
        git merge kernel.org/master/*s3c*  - merge anything that has to do with 
the Samsung S3C processors only

Problems to be resolved are:
a. How do you preserve the herring_defconfig Android kernel modifications. They 
only exist in android/kernel/samsung
b. How can you merge a portion of a GIT repository? For instance, only merge 
arch/arm from remote branch X.



Is this the right way?



2. Are dialogs supposed to be modal?

After years of using dialogs, today I got doubts that they are
strictly modal after all. There seems to be a short time span in which
it is possible to hit other Views AFTER show() of the dialog is

Does this work as intended?

Any ideas how to make a dialog really modal?

Have a look here for some details:


3. How do I get getResources() to work in another class?

4. what android phone should i get?

5. DevicePolicyMgr resetPassword requires android.permission.WRITE_SECURE_SETTINGS on 3.0?

6. Can WebView#onPageFinished be called after WebView#onPause has been called?

7. What is WebView.enablePlatformNotifications for?