Libgdx file not reading (null) when run on android device -


i'm running game android studio android phone connected pc, , i'm not getting errors not finding file when should loaded, in 'android/assets/items/' folder, file 'someshop.csv', , loaded by:

bufferedreader br = new bufferedreader(new     filereader(gdx.files.internal("items/"+place+".csv").file())); 

where 'place' = 'someshop'

works fine on desktop, , can read lines:

line = br.readline() 

however on phone, entries (text file used build button text) come 'null'. i've cleaned , rebuilt project; no help. need build , deploy (install) project on phone work?

on android, internal filetype not backed actual file. rather, points entry in zip (apk). should use filehandle#reader() method obtain reader can used read file contents.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -