Skip to content Skip to sidebar Skip to footer

Mapview / Mapactivity Crash On Some Devices

I have gone through Google's MapView tutorial and it works fine on the emulator and for example on my HTC Flyer. But for some reason it immediately crashes when starting it on my m

Solution 1:

I got it! Guess what! It's the package name that matters!!!

I found a Google Map sample in:

C:\android-sdk\add-ons\addon-google_apis-google_inc_-10\samples\MapsDemo

then I stripped it down until it was nearly identical to my one. I was using bernd.konnerth as the package name. But for some really crazy reason, obviously the Samsung phone (and probably other devices as well) does not accept that and simply throws a NullPointerException at launch, without any further hint that could point to the package name issue.

When I use com.bernd.konnerth everything works fine. Obviously there must be a com. in front. But be warned! There seem to be further name combinations that don't work. By chance I found out that for example com.android.wifi doesn't work as well! Even thought this package does NOT seem to exist in android namespace.

Such things can really drive people crazy! :-(

Nevertheless thanks for all of your fast replies!

Bernd

Post a Comment for "Mapview / Mapactivity Crash On Some Devices"