serialize and deserialize json to files before upload
add code to check if the android application was 'on background' or not