Hey Guys I am learning JSON right now. So at first I want to learn how to create one. So I wrote this code ...
public void writeJsonFile() {
username = usernameField.getText().toString();
password = passwordField.getText().toString();
JSONObject jsonObject = new JSONObject();
try{
jsonObject.put("username", username);
jsonObject.put("password", password);
}
catch (JSONException e) {
e.printStackTrace();
}
}
But I have a Problem...How I can save the jSON file into the internal memory in the appfolder? And what is the code to call and read that file again?