AndroLua icon indicating copy to clipboard operation
AndroLua copied to clipboard

having activity:getFilesDir() to work in init phases

Open ildar opened this issue 7 years ago • 0 comments

Normally it works, e.g:

$ telnet localhost 3333

print(activity:getFilesDir()) /data/data/sk.kottman.androlua/files

But when I try to use it in around there: https://github.com/stevedonovan/AndroLua/blob/master/assets/main.lua#L18

I get an error like "No such method: getFilesDir". This is probably related to the "userdata" object doesn't fully work at this stage or something.. I'm not sure if it's in Android or in AndroLua manipulations.

Can you advise? or maybe @stevedonovan ? thanks.

ildar avatar Aug 10 '18 12:08 ildar