Skip to content

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

Description

@ildar

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions