I have been trying to get the URI path for an asset file.
uri = Uri.fromFile(new File(\"//assets/mydemo.txt\"));
When I check if the file
Try this out, it works:
InputStream in_s = getClass().getClassLoader().getResourceAsStream("TopBrands.xml");
If you get a Null Value Exception, try this (with class TopBrandData):
TopBrandData
InputStream in_s1 = TopBrandData.class.getResourceAsStream("/assets/TopBrands.xml");