Android saving data in Internal Storage NullPointerException
问题 I have a little problem with writing a file in internal storage from my application.I'm gettin a null pointer exception,but can't find the way to fix it..and actually can't understand which one of the elements is null. Here is the code that I'm using : hash= jsonObj.getString("hash"); Log.w("CLIENT AUTH HASH","SHOW CLIENT AUTH HASH : "+hash); FileOutputStream out = context.openFileOutput("autohash",context.MODE_PRIVATE); out.write(hash.getBytes()); out.close(); The class where I'm trying to