Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

having activity:getFilesDir() to work in init phases #22

Open
ildar opened this issue Aug 10, 2018 · 0 comments
Open

having activity:getFilesDir() to work in init phases #22

ildar opened this issue Aug 10, 2018 · 0 comments

Comments

@ildar
Copy link

ildar commented Aug 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant