Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package net.learn2develop.GoogleMaps; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google.android.maps.OverlayItem; import com.google.android.maps.MapView.LayoutParams; import com.google.android.maps.Overlay; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Point; import android.graphics.drawable.Drawable; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.Toast; import java.io.IOException; import java.util.List; import java.util.Locale; public class MapsActivity extends MapActivity { Button btnMark , btnClear; MapView mapView; MapController mc; GeoPoint p,point1 ; double latz; double longz; String Coords = ""; //play Drawable drawable,drawable2; HelloItemizedOverlay itemizedOverlay; //play end //testing here int IniLat; int IniLon; String StrLat =""; String StrIntLat =""; String StrLon =""; String StrIntLon =""; int intFinallatz; int intFinallonz; HelloItemizedOverlay itemizedOverlay2; // // private MyLocationOverlay myLocOverlay; class MapOverlay extends com.google.android.maps.Overlay { @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new Point(); mapView.getProjection().toPixels(p, screenPts); //---add the marker--- Bitmap bmp = BitmapFactory.decodeResource( getResources(), R.drawable.pushpin); //canvas.drawBitmap(bmp, screenPts.x, screenPts.y, null); return true; } public boolean onTouchEvent(MotionEvent event, MapView mapView) { if (event.getAction() == 1) { p = mapView.getProjection().fromPixels((int) event.getX(), (int) event.getY()); mc.animateTo(p); Geocoder geoCoder = new Geocoder( getBaseContext(), Locale.getDefault()); try { List
addresses = geoCoder.getFromLocation( p.getLatitudeE6() / 1E6, p.getLongitudeE6() / 1E6, 1); latz = (double) (p.getLatitudeE6() / 1E6); longz = (double) (p.getLongitudeE6() / 1E6); Coords = "latitude: "+ Double.toString(latz); Coords += "Longitude: "+ Double.toString(longz); //test// //lat IniLat = (int)latz;// not used StrIntLat = Integer.toString(IniLat);// not used StrLat = Double.toString(latz);// not used int LengthLat = StrLat.length();//whoel elngth int LengthIniLat = StrIntLat.length();//int length int Power = LengthLat - LengthIniLat - 1;// not used double DblPower = (double)Power;// not used double tenPow = Math.pow(10.0,DblPower);// not used double Finallatz = latz * tenPow;// not used intFinallatz = (int)Finallatz; // not used //end lat// //long //int IniLon = (int)longz;// not used StrIntLon = Integer.toString(IniLon);// not used StrLon = Double.toString(longz);//change doublr to string int LengthLon = StrLon.length();//whole length of double int LengthIniLon = StrIntLon.length();//int length int PowerLon = LengthLon - LengthIniLon - 1;// not used double DblPowerLon = (double)PowerLon;// not used double tenPowLon = Math.pow(10.0,DblPowerLon);// not used double Finallonz = longz * tenPowLon;//not used intFinallonz = (int)Finallonz; // not used //point3 = new GeoPoint(intFinallatz,intFinallonz); //OverlayItem overlayitem3 = new OverlayItem(point3, "lat", "long"); //1.300241,103.838438 313 // itemizedOverlay.addOverlay(overlayitem3); //mapView.getOverlays().add(itemizedOverlay); //end test// String add = ""; if (addresses.size() > 0) { for (int i=0; i listOfOverlays = mapView.getOverlays(); listOfOverlays.clear(); listOfOverlays.add(mapOverlay); // initMyLocation(); mapView.invalidate(); //btn when click btnMark.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { point1 = new GeoPoint((int)(latz * 1e6), (int)(longz * 1e6)); OverlayItem overlayitem = new OverlayItem(point1, "Marked Point", "Marked Point"); itemizedOverlay2.addOverlay(overlayitem); mapView.getOverlays().add(itemizedOverlay2); } }); //end btnmark //start btn clear btnClear.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent myIntent = new Intent(((View) v).getContext(),MapsActivity.class); startActivityForResult(myIntent, 1); } }); //end clear } /** * Initialises the MyLocationOverlay and adds it to the overlays of the map */ // private void initMyLocation() { // myLocOverlay = new MyLocationOverlay(this, mapView); // myLocOverlay.enableMyLocation(); // mapView.getOverlays().add(myLocOverlay); // } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } }