Maps: service not available

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

Sponsored Links
 See the code:

    public void onCreate(Bundle savedInstanceState)

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

            new LinearLayout.LayoutParams(

        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() * 
                                        (int) (addresses.get(0).getLongitude() 
* 1E6));
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        AlertDialog.Builder alerta=new 
                alerta.setPositiveButton("Ok", null);

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



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
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 
( in 
the section "User Experience").


* Looking for Android Apps? - Try *

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

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?


greg k-h


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

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