Maps: service not available

by coy » Wed, 04 Aug 2010 00:24:56 GMT


Sponsored Links
 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.

--



Maps: service not available

by coy » Wed, 04 Aug 2010 02:42:16 GMT


 Well, I haven't found a solution to this problem!
But my application is working in the sdk level 7. At level 8 it is
working!
why? o__O




--


Sponsored Links


Other Threads

1. Is it a good idea to change the default Android controls?

If you think users will perceive your app as valuable enough to learn any 
non-standard UI quirks, and the modifications add value to what you're trying 
to achieve then it might be worth it.

Its' very rare that this is the case though. I've done it once to 
HorizontalScrollView and that was only to create an effect that the app UI 
designer had put into the designs and the end customer had already signed off 
on, and even then I raised the issue that it created a non-standard UI 
mechanism which could confuse users.

Reto Meier (Google Developer advocate & author of Pro Android Development) has 
a section on this issue in one of his app surgeries 
(http://blog.radioactiveyak.com/2010/05/android-app-surgery-mysettings.html in 
the section "User Experience").

Al.
--

* Looking for Android Apps? - Try http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the company number  
6741909. 

The views expressed in this email are those of the author and not necessarily 
those of Funky Android Limited, it's associates, or it's subsidiaries.










>>>> 

2. Regarding coding standards for GPL license device drivers code



Why do you think that the GPL has _anything_ to do with the coding
style of the code itself becides being in a readable format by
a developer?

And what does this have to do with android kernel specific things?

confused,

greg k-h

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Your content must have a ListView whose id attribute is 'android.R.id.list'

4. Why this Exception is coming ?

5. Setting multiple alarms

6. Fwd: Regarding thumb of the seek bar

7. Progressbar with Thumb image is not showing correctly on the 2.1 emulator