DataAbstract Briefcase for Java/Android

Hello,
I was playing around with the briefcase for an android app since i would like to keep my data local(for offline purpose).

Here’s how i do the save/load

private void saveToLocal(){
    FileBriefcase fb = new FileBriefcase("briefcaseTest.daBriefcase", false);
    fb.addTable(dm.lTable);  
}

private void loadFromLocal(){
    System.out.println("LOAD FROM LOCAL");
    FileBriefcase fb = new FileBriefcase("briefcaseTest.daBriefcase", true);
    System.out.println("FILE BRIEFCASE LENGTH: " + fb.getCount());
}

But on the load part i get an exception when i create the briefcase for read purpose

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Guess i do something wrong but i’m not sure what.

private void saveToLocal(){
    FileBriefcase fb = new FileBriefcase("briefcaseTest.daBriefcase", false);
    fb.addTable(dm.lTable);
    fb.writeBriefcase();
}

i added writeBriefcase but it throws a null pointer exception there

try to specify full filename like

Environment().getDataDirectory().getAbsolutePath()+"/briefcaseTest.daBriefcase"