I install android 2.1 and google API API7
i create my AVD in eclipse
name ... , target = Google APIs ( Google Inc. ) - API level 7
and no hardware setting.
and i coding some html Parsing program and
pased data show marker on google map.
i run my program . and result is so slow. and program show me the message
Sorry!
Activity GoogleMaps ( in application GoogleMaps) is not responding.
Enforce close wait
and map is not moving by dragging.
and program reshow the that Message.
im cry... T.T why is so late...
and if you have the solution to this problems. tell me .. T.T
following is some part of program source
i refer to developer.android.com > resource > Hello views > Google Mapview >
i display approximately 15 makers to the map.
Using java Syntax Highlighting
- public void ShowMaps( List<FoodHouseMainInfo> fhmiList )
- {
- List<Overlay> mapOverlays = mapView.getOverlays();
- Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);
- FoodMakerOverlay itemizedoverlay = new FoodMakerOverlay(drawable);//, getApplicationContext() );
- for( int i = 0 ; i < fhmiList.size() ; i++ )
- {
- FoodHouseMainInfo fhmi = fhmiList.get( i );
- String address = fhmi.GetAddress();
- List<Address> foundAddresses = null;
- try {
- foundAddresses = gc.getFromLocationName( address , 1 );
- if( foundAddresses.size() == 0 )
- {
- }
- else
- {
- Address x = foundAddresses.get( 0 );
- Double lat = x.getLatitude()* 1000000;
- Double lon = x.getLongitude()* 1000000;
- GeoPoint point = new GeoPoint( lat.intValue() ,lon.intValue());
- OverlayItem overlayitem = new OverlayItem(point, "Hola, Mundo!", "I'm in Mexico City!");
- itemizedoverlay.addOverlay(overlayitem);
- mapOverlays.add(itemizedoverlay);
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
Parsed in 0.037 seconds, using GeSHi 1.0.8.4

