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 sd.mb; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.KeyEvent; import android.view.inputmethod.InputMethodManager; 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.Overlay; import com.google.android.maps.OverlayItem; public class MyMap extends MapActivity { private MapView mapView; List mapOverlays; Drawable drawable; ItemizedOverlay iOverlay; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); //get data from web Bundle b = this.getIntent().getExtras(); String mapData = b.getString("json"); mapView = (MapView) findViewById(R.id.mymap); mapView.setBuiltInZoomControls(true); GeoPoint pt = new GeoPoint((int) (b.getDouble("mylat") * 1E6), (int) (b.getDouble("mylng") * 1E6)); MapController mc = mapView.getController(); mc.setCenter(pt); mc.setZoom(15); //mapOverlays = mapView.getOverlays(); try { JSONArray jsonArray = new JSONArray(mapData); for (int i=0; i < jsonArray.length(); i++ ) { JSONObject p = jsonArray.getJSONObject(i); //parse lat and lng from json double lat = Double.parseDouble(p.getString("lat")); double lng = Double.parseDouble(p.getString("lng")); //make icon drawable = getIcon(p.getInt("bankid")); iOverlay = new ItemizedOverlay(drawable, this); GeoPoint point = new GeoPoint((int) (lat * 1E6), (int) (lng * 1E6)); OverlayItem overlayitem = new OverlayItem(point, p.getString("bankname"), p.getString("baddress")); iOverlay.addOverlay(overlayitem); mapView.getOverlays().add(iOverlay); } drawable = getIcon(0); iOverlay = new ItemizedOverlay(drawable, this); GeoPoint point = new GeoPoint((int) (b.getDouble("mylat") * 1E6), (int) (b.getDouble("mylng") * 1E6)); OverlayItem overlayitem = new OverlayItem(point, "", ""); iOverlay.addOverlay(overlayitem); mapView.getOverlays().add(iOverlay); } catch (JSONException e) { e.printStackTrace(); } } @Override protected boolean isRouteDisplayed() { return false; } private Drawable getIcon(int bankid) { switch( bankid) { case 1 : return this.getResources().getDrawable(R.drawable.bank_1); case 2 : return this.getResources().getDrawable(R.drawable.bank_2); case 3 : return this.getResources().getDrawable(R.drawable.bank_3); case 4 : return this.getResources().getDrawable(R.drawable.bank_4); case 7 : return this.getResources().getDrawable(R.drawable.bank_7); case 13 : return this.getResources().getDrawable(R.drawable.bank_13); case 15 : return this.getResources().getDrawable(R.drawable.bank_15); case 16 : return this.getResources().getDrawable(R.drawable.bank_16); case 17 : return this.getResources().getDrawable(R.drawable.bank_17); case 18 : return this.getResources().getDrawable(R.drawable.bank_18); case 19 : return this.getResources().getDrawable(R.drawable.bank_19); case 21 : return this.getResources().getDrawable(R.drawable.bank_21); case 24 : return this.getResources().getDrawable(R.drawable.bank_24); case 28 : return this.getResources().getDrawable(R.drawable.bank_28); case 29 : return this.getResources().getDrawable(R.drawable.bank_29); } return this.getResources().getDrawable(R.drawable.map_pointer); } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { switch(keyCode) { case KeyEvent.KEYCODE_BACK: startActivity(new Intent(this, Atm.class)); return true; } return false; } }