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 com.EaseApps.jamrecipes; import java.io.IOException; import java.util.List; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; import android.content.Context; import android.util.Log; import android.widget.ImageView; public class xmlAnalyzer extends DefaultHandler { // Used to define what elements we are currently in private boolean inImg = false; private boolean inTitle = false; private boolean inDesc = false; // Feed and Article objects to use for temporary storage private List detailsItem = null; private List menuItem = null; private List ImgItem = null; private String currentMenu = "", currentDetail = "", currentImg = ""; public void startElement(String uri, String name, String qName, Attributes atts) { if (name.trim().equals("title")) inTitle = true; else if (name.trim().equals("img")) inImg = true; else if (name.trim().equals("desc")) inDesc = true; } public void endElement(String uri, String name, String qName) throws SAXException { if (name.trim().equals("title")) { inTitle = false; menuItem.add(currentMenu); currentMenu = null; } else if (name.trim().equals("img")) { inImg = false; ImgItem.add(currentImg); currentImg = null; } else if (name.trim().equals("desc")) { inDesc = false; detailsItem.add(currentDetail); currentDetail = null; } } public void characters(char ch[], int start, int length) { String chars = (new String(ch).substring(start, start + length)); try { if (inTitle) { currentMenu = chars; } else if (inImg) { currentImg = chars; } else if (inDesc) { currentDetail = currentDetail + chars; } } catch (Exception e) { Log.e("NewsDroid", e.toString()); e.printStackTrace(); } } public xmlAnalyzer(Context ctx, List detail, List menu, List img) { detailsItem = detail; menuItem = menu; ImgItem = img; try { SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); xr.setContentHandler(this); xr.parse(new InputSource(ctx.getAssets().open("recipe.xml"))); } catch (IOException e) { Log.e("Recipe", e.toString()); e.printStackTrace(); } catch (SAXException e) { Log.e("Recipe", e.toString()); e.printStackTrace(); } catch (ParserConfigurationException e) { Log.e("Recipe", e.toString()); e.printStackTrace(); } } @Override public void endDocument() throws SAXException { } }