Android : error: cannot find symbol variable raw -


i trying read 1 file res/raw folder. have created resource directory named raw inside res folder , copied file named sample it. when try read file using

inputstream inputstream = this.getresources().openrawresource(r.raw.sample); 

i compile time error.

error:(35, 67) error: cannot find symbol variable raw

all other resources drawable, string accessible reference -- r.drawable , r.string etc. r.raw giving error. how can access res/raw folder?


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -