I'm also having IO exceptions when trying to parse the raw ersources: I have a BroadCastReceiver, where: public void onReceive(Context context, Intent intent) { SAXParserFactory spf = SAXParserFactory.newInstance(); try { SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); XMLHandler xmlHandler = new XMLHandler(); xr.setContentHandler(xmlHandler); xr.parse(new InputSource(context.getResources().getString(R.raw.demo_config))); } catch (Exception e) { Log.v("----------", e.toString()); }
} This line: xr.parse(new InputSource(context.getResources().getString(R.raw.demo_config))); gives me java.io.IOException: Couldn't open res/raw/demo_config.xml I've also tried: //xr.parse(new InputSource(context.getResources().openRawResource(R.raw.demo_config))); which gave me the same result. Any ideas why the io exception? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---