OWASP Mobile Security Project Platform Specific Guidance Android Code Draft

Data Protection
Android code examples for Data Protection:  try { Context context = getApplicationContext; FileOutputStream stream; stream = context.openFileOutput("local_filename", Context.MODE_PRIVATE); OutputStreamWriter bw = new OutputStreamWriter(stream); bw.write(sb.toString); bw.flush; bw.close; } catch (IOException ioe) { // Handle the exception } 