Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am developing a small app in felx mobile project for blackberry playbook, am using flash builder burrito,
i want to get the current location's latitude ,longtitude value using GPS. But the geolocation event does not fire in my code, anyother way to get the latitude,longtitude value?
C#
protected function button1_clickHandler(event:MouseEvent):void
            {
                // TODO Auto-generated method stub

                if(Geolocation.isSupported)
                {
                        txt_GPS.text = "GPS Supported";
                        geocode.setRequestedUpdateInterval(100);
                        geocode.addEventListener(GeolocationEvent.UPDATE,handleLocationRequest);

                }
                else
                {
                    txt_GPS.text = "Not Supported";
                }

            }

            public function handleLocationRequest(event:GeolocationEvent):void
            {
                txt_GPS.text = event.latitude.toString();
            }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900