Outsourcing Map Menu

I use the android pie radial menu widget ( http://code.google.com/p/radial-menu-widget/downloads/list - version v2), and to make the code more elegant, I passed the external menu code for another class, the problem is that I use the menu item on the google map and when I click I want to add overlays to the map according to the user’s choice in the menu, since the menu is a standalone class that I send the constructor the map activity context and inside the menu on onClickListener I activate static method on the map (the method that should place objects on the map in accordance with the id number) - it does not work and continues to fail (once in the menu, try to access the static method on the map, which it will immediately work). Does anyone have an idea how I can make it work? equal sign ps I know that basically I did work with the map, and the radial menu of the circular map was closely related. I just did not think of any better way. I will use any help / suggestion.

+4
source share

All Articles