Hello,
Maybe some body know how to fix this error:
No enclosing instance of the type MyMap is accessible in scope. Please, help me. Below is my code:
public class MyMap extends MapView
{
public void MyMap()
{
}
public MyMap(Context context, AttributeSet attrs, java.util.Map inflateParams)
{
super(context, attrs, inflateParams);
}
}
class Top
{
Top()
{
// Here is error;
// No enclosing instance of the type MyMap is accessible in scope.
MapView v=(MapView)MyMap.this.findViewById(R.id.mapview);
}
}
MapView have final method. How I understand this method can be called without creating object of MyMap.
public final View findViewById(int id)
How I can resolve this bug?