title: Android assets - FileNotFound
body: <p>I am inside a fragment in this class:</p>
  
  <pre><code>public class NetworksList extends Fragment{
  </code></pre>
  
  <p>Also inside my <code>onCreate</code> function I'have this piece of code:</p>
  
  <pre><code>        XmlPullParserFactory pullParserFactory;
          try {
              pullParserFactory = XmlPullParserFactory.newInstance();
              XmlPullParser parser = pullParserFactory.newPullParser();
  
              InputStream in_s = getActivity().getApplicationContext().getAssets().open("temp.xml");
              parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
              parser.setInput(in_s, null);
              Toast.makeText(getActivity().getApplicationContext(), "size: ", Toast.LENGTH_LONG).show();
              parseXML(parser);
  
          } catch (XmlPullParserException e) {
  
              e.printStackTrace();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  </code></pre>
  
  <p>Wish I am trying to use to open XML Files. I have my XML file in the assets folder, but I am getting:</p>
  
  <pre><code>05-08 18:03:11.034  24645-24645/pt.smartgeo.aees W/System.err﹕ java.io.FileNotFoundException: temp.xml
  05-08 18:03:11.034  24645-24645/pt.smartgeo.aees W/System.err﹕ at android.content.res.AssetManager.openAsset(Native Method)
  05-08 18:03:11.034  24645-24645/pt.smartgeo.aees W/System.err﹕ at android.content.res.AssetManager.open(AssetManager.java:316)
  05-08 18:03:11.034  24645-24645/pt.smartgeo.aees W/System.err﹕ at android.content.res.AssetManager.open(AssetManager.java:290)
  05-08 18:03:11.034  24645-24645/pt.smartgeo.aees W/System.err﹕ at pt.smartgeo.aees.NetworksList$2.onClick(NetworksList.java:77)
  </code></pre>
  
  <p>FileNotFound... How can I know where to put my temp.xml file so I can open it in my NetworksList Class?</p>