我正在尝试使用openFileOutput
不是 Activity 类的类。当我写下面的东西时,它给了我空指针异常-
try {
Context con = null;
fosCAM = con.openFileOutput(camFile, Context.MODE_PRIVATE);
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
任何人都可以帮助我吗?