The method "onPosition" in PositionHandler is defined as public, so
your implementation must also declare it as public. You are trying to
define it as package-private (aka "default") which is reduced
visibility.

Just add public:

         if (f != null){
                Geolocation geo = f.createGeolocation();
                geo.getCurrentPosition(new PositionHandler() {
HERE--->>>    public void onPosition(PositionHandler.PositionEvent pos) {

On Fri, Mar 20, 2009 at 6:35 AM, Gatillo <[email protected]> wrote:
> Hi,
>
> here is the code with the problem:
>
>  Factory f = Factory.getInstance();
>
>         if (f != null){
>                Geolocation geo = f.createGeolocation();
>                geo.getCurrentPosition(new PositionHandler(){
>                    void onPosition(PositionHandler.PositionEvent pos)
> {      <------ ERROR
>                          if(!pos.isError()){
>                                 Position new_pos = pos.getPosition
> () ;
>
>                          }
>                   }
>              });
>
>         }
>
> maybe I have to change the PositionHandler.class to instance an
> object!? I'm a little messy with this stuffs, anyone have this
> problem? or maybe I'm not making the best way to "get a position"
>
> Maybe you know about this Mark?
>
> thanks for your support
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to