dalejbarr / Lex

finger-tracking Android app
GNU General Public License v2.0
0 stars 0 forks source link

NullPointer Exception while creating session files #9

Open mickeypash opened 9 years ago

mickeypash commented 9 years ago

Migrating to Android Studio and newer API is almost complete. However there is a NullPointer Exception when attempting to create a file.

getDir(String path, Context context)
getDir("DataDir", 0)
getDir(Environment.DIRECTORY_PICTURES, Context.MODE_PRIVATE)
    enables you to create any file or dir in the internal memory
    it is also accessible by other applications
    returns a File object

Resource material