Raw Resource

XML file saved at:

res/
  raw/
    file.txt
    other_file.json

Resource reference

  • XML: @raw/file
  • Java: Res.raw.file

Example

Text file saved at res/raw/myRaw.txt

This application code retrieves an InputStrem from RAW resource:

InputStream myRaw = ResManager.openRaw(Res.raw.myRaw);