Hey,
I've been trying to follow this tutorial on using Google Map View in Android. In the second part, they create an mContext
member variable and then pass that into AlertDialog.Builder(mContext)
, but the constructor that they call to create an instance of an HelloItemizedOverlay
doesn't instantiate mContext
, so it's just left null
as far as I know.
The program doesn't work properly, and throws a NullPointerException
as I suspected. How is this supposed to work?
Thanks,
Jengerer