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)
void ParseAndSave() { InputStream is = getResources().openRawResource(R.raw.filejson); BufferedReader br = null; String jsonStr = ""; try { MyMap data= new MyMap(); String x = ""; br = new BufferedReader(new InputStreamReader(is)); String line; StringBuilder sb = new StringBuilder(); while ((line = br.readLine()) != null) { sb.append(line).append("\n"); } jsonStr = sb.toString(); JSONObject obj = new JSONObject(jsonStr); data.zoom=obj.getInt("zoom_factor"); data.map_url=obj.getString("map_url"); //zoom_urls JSONObject zoom_urls= obj.getJSONObject("zoom_urls"); data.z_urls.out=zoom_urls.getString("out"); data.z_urls.in=zoom_urls.getString("in"); //bounds JSONObject bounds = obj.getJSONObject("bounds"); JSONObject sw = bounds.getJSONObject("south_west"); data.bounds.south_w.lat=sw.getDouble("lat"); data.bounds.south_w.lon=sw.getDouble("lon"); JSONObject ne = bounds.getJSONObject("north_east"); data.bounds.north_e.lat=ne.getDouble("lat"); data.bounds.north_e.lon=ne.getDouble("lon"); //map data JSONArray map_data = obj.getJSONArray("map_data"); JSONObject map_data00 = map_data.getJSONObject(0); data.map_data.name=map_data00.getString("name"); data.map_data.id=map_data00.getString("id"); //map center JSONObject map_center = obj.getJSONObject("bounds"); JSONObject point = map_center.getJSONObject("point"); data.map_center.point.lat=point.getDouble("lat"); data.map_center.point.lon=point.getDouble("lon"); JSONObject tile = map_center.getJSONObject("tile"); data.map_center.tile.lat=tile.getDouble("lat"); data.map_center.tile.lon=tile.getDouble("lon"); //marker JSONArray marker = obj.getJSONArray("marker"); JSONObject opacity = marker.getJSONObject(0); data.marker.opac=opacity.getString("opacity"); JSONObject text_size = marker.getJSONObject(1); data.marker.tsize=text_size.getInt("text_size"); JSONObject m_point = marker.getJSONObject(2); data.marker.point.lat=m_point.getDouble("lat"); data.marker.point.lon=m_point.getDouble("lon"); JSONObject icon_name= marker.getJSONObject(3); data.marker.iconname=icon_name.getString("icon_name"); JSONObject meta_data= marker.getJSONObject(4); data.marker.metadata.lat=meta_data.getDouble("y"); data.marker.metadata.lon=meta_data.getDouble("x"); JSONObject label= marker.getJSONObject(5); data.marker.label=label.getInt("label"); //pan urls JSONObject pan_urls = obj.getJSONObject("pan_urls"); data.pan_urls.s=pan_urls.getString("south"); data.pan_urls.sw=pan_urls.getString("south_west"); data.pan_urls.se=pan_urls.getString("south_east"); data.pan_urls.w=pan_urls.getString("west"); data.pan_urls.e=pan_urls.getString("east"); data.pan_urls.n=pan_urls.getString("north"); data.pan_urls.nw=pan_urls.getString("north_west"); data.pan_urls.ne=pan_urls.getString("north_east"); x= data.toString(); Print(x); } catch (Exception je) { setStatus("Error: " + je.getMessage()); } } void Print(String x) { TextView tv = (TextView) findViewById(R.id.txtStaietus); tv.setText(x); }