Error: No enclosing instance

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

Error: No enclosing instance

Postby andrex_17 » Fri Dec 19, 2008 4:51 pm

Can help me?? I've been trying show a Toast Message but I got this error

No enclosing instance of the type simpleGoogleMaps is accessible in scope. My simple google maps just extend of mapActivity

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class simpleGoogleMaps extends MapActivity {
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


and my Overlay class is

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class Overlay extends ItemizedOverlay<OverlayItem> implements Activity{
  2.  
  3.     public List<OverlayItem> mItemList = new ArrayList<OverlayItem>();
  4.  
  5.     GeoPoint geoPoint;
  6.  
  7.     Drawable marker;
  8.  
  9.     public Overlay(simpleGoogleMaps simpleGoogleMaps, Drawable defaultMarker,String tipo, GeoPoint p) {
  10.  
  11.         super(defaultMarker);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
Attachments
error.JPG
error
error.JPG (15 KiB) Viewed 276 times
andrex_17
Freshman
Freshman
 
Posts: 6
Joined: Wed Nov 26, 2008 8:24 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest