How deprecate methods will work in the MapActivity

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

How deprecate methods will work in the MapActivity

Postby munireddy » Thu Jan 14, 2010 6:24 pm

Hi

I have run the code of map view in that one method is showing that it is deprecated

View zoomView = mapView.getZoomControls();

in the above code " getZoomControls() " is showing as deprecated.
But the application running properly....any explanation?

Thanks in advance..
munireddy
Developer
Developer
 
Posts: 28
Joined: Mon Dec 28, 2009 5:47 pm
Location: MOHALI

Top

Postby nicholas.hauschild » Fri Jan 15, 2010 2:09 pm

Hello munireddy,

Deprecation of methods is an interesting thing. Developers deprecate methods when they are no longer important/useful, and probably should be removed from the API, but they typically do not right away, as to attempt to prevent breaking backward compatibility for applications that may already be implementing these API's. But they also sometimes DO remove them at a later date.

Usually, when a method is deprecated, there is a new way to do the same thing, and I believe your case has another solution implemented a little bit differently.

Have you tried MapView.setBuiltInZoomControls(boolean)? I believe that is what is meant to replace the deprecated method which you are speaking of.

Good luck,
-Nick
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Postby munireddy » Fri Jan 15, 2010 6:22 pm

Hi nicholas.hauschild
Thank you very much for your response....its working fine.. :)
munireddy
Developer
Developer
 
Posts: 28
Joined: Mon Dec 28, 2009 5:47 pm
Location: MOHALI

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest