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. A-Pad/i-Robot COD Yogya only 2,2 juta saj

Sesuai judul, mau jual apad, kebetulan temen saya yang nitip gajadi
ambil, jual gapake untung aja, asal nutup kos+ongkir+tax, jadi jual
murah abis, cuman 2,2 juta rupiah no nego.

Spek apad:
-Google Android 1.5 OS
-CPU: Rockchip 2808A 600MHz / 500MHz DSP (Dual-Core)
-RAM: 128mb ROM: 2GB
-micro sd card extension maximal 32GB
-7.0 inch WVGA 800*400 pixels touch screen
-WIFI support 802.11b/g
-Google map
-Browser: Google Browser
-Video support: MKV, AVI, RM/RMVB, FLV, MPEG-1, MPEG-2
-Music support: MP3, WMA, APE, FLAC, AAC, AC3, WAV
-Photo support: JPEG, BMP, GIF, PNG, TIFF
-G-sensor support
-Built-in 3000mAH rechargeable battery
-Dimensions (L*W*H): 190.5*118.5*14.7 mm
-Weight: 332g
- camera VGA

Sedikit review punya saya:
- home tidak bisa portrait
- saat unlock ke home kadang agak lama
- android 1.5 non upgradable (saat ini)
- layar resistif, no multitouch
- cukup responsif
- katanya bisa modul 3g pake usb modem (di menunya juga ada pilihan)
cuman belum nyubain, di rumah adanya wifi dan mifi duank
- durasi batere (wifi on terus) sekitar 5-7 jam, kalo pake standby
layar dimatiin bisa seharian


Barang saya buka untuk tes charging+wifi, tes OK

Saya hanya jual di area Yogya, COD, hari kerja di UGM, pas libur
janjian aja.

Poto-poto:
http://www.fileden.com/files/2007/11/24/1604922//IMG00104-20100529-1349.jpg
http://www.fileden.com/files/2007/11/24/1604922//IMG00106-20100529-1401.jpg
http://www.fileden.com/files/2007/11/24/1604922//IMG00110-20100529-1626.jpg

regards,

gunggu
http://www.gunggu.com
contact reply ke email saya saja

-- 
"Indonesian Android Community [id-android]" 

2. OOT cek sisa data axis

As subject pake paket data axis, gimana klo pingin tau sisa quota? Sekarang 
pake yang mingguan. Gak kepake sayang, lebih jebolin pulsa.

Kalau three benar2 unlimited kah? Atau ada FUP.


--
firdausmuba...@gmail.com
YM, Gt, FB, twit : @firdausmubarik
http://firdaus.web.id

-- 
"Indonesian Android Community [id-android]" 

3. Acc desire

4. Anti gores dan sarung htc incredible

5. Software pencatat meteran lisrik

6. Sample code for INJECT_EVENTS permission

7. Eclair: MovieView App to put into background like Music App.