android - How to get Environment.getExternalStorageDirectory().getAbsolutePath() from libGDX class? -


i have game flappy bird. want save highscore in text file. first need directory path.

enter image description here

here can see unable call environment external storage directory. why happening?

is because calling environment core directory? if how can directory class?

thanks in advance...

yes, because calling environment core directory. can in android directory have:

public static string foo="bar"; 

and access core class classname.foo.

edit: in case, try use libgdx data write/read instead of calling android. please check this: libgdx documentation


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -