See the code:

@Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mapView = (MapView) findViewById(R.id.mapView);
        LinearLayout zoomLayout =
(LinearLayout)findViewById(R.id.zoom);
        View zoomView = mapView.getZoomControls();

        zoomLayout.addView(zoomView,
            new LinearLayout.LayoutParams(
                LayoutParams.WRAP_CONTENT,
                LayoutParams.WRAP_CONTENT));
        mapView.displayZoomControls(true);

        mc = mapView.getController();

        Geocoder geoCoder = new Geocoder(this, Locale.getDefault());
        List<Address> addresses;
                try {
                        addresses = geoCoder.getFromLocationName(
                                "San Francisco, California", 1);
                        if (addresses.size() > 0) {
                                        p = new GeoPoint(
                                        (int) (addresses.get(0).getLatitude() * 
1E6),
                                        (int) (addresses.get(0).getLongitude() 
* 1E6));
                                mc.animateTo(p);
                                mc.setZoom(17);
                        }
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        AlertDialog.Builder alerta=new 
AlertDialog.Builder(this);
                alerta.setTitle("Error");
                alerta.setMessage(e.toString());
                alerta.setPositiveButton("Ok", null);
                alerta.show();
                }
    }

the dialogue displays me: service not available! and yesterday, it was
working perfectly.
this has happened to someone? any ideas?

Regards,
COY.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en

Reply via email to