Modified the Application module. Removed the Application class and added its methods to the exports directly.

This commit is contained in:
atanasovg
2014-05-09 19:25:11 +03:00
parent 7aa70fb14c
commit 44c51a0e48
10 changed files with 70 additions and 108 deletions

View File

@ -207,13 +207,13 @@ export class FileSystemAccess {
}
public getDocumentsFolderPath(): string {
var context = appModule.current.android.context;
var context = appModule.android.context;
var dir = context.getFilesDir();
return dir.getAbsolutePath();
}
public getTempFolderPath(): string {
var context = appModule.current.android.context;
var context = appModule.android.context;
var dir = context.getCacheDir();
return dir.getAbsolutePath();
}