I have this code
itemizedOverlay = new MyItemizedOverlay(drawable,this);
itemizedOverlay.setGestureDetector(new GestureDetector(new MyGestureDetecor()));
but new GestureDetector
is marked as Deprecated in Eclipse.
I want to avoid the use of deprecated methods.
How could I fix this problem?
What is the non-deprecated form?
Choose one of the other constructors. There are five defined constructors on GestureDetector
. Two -- the ones not including a Context
as the first parameter -- are marked as deprecated. You are using one of those.
There are just two deprecated constructors. If you add the context to GestureDetector(context, listener) it's not deprecated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With