This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

OWASP Mobile Security Project Platform Specific Guidance AndroidCode Draft

From OWASP
Revision as of 11:34, 20 October 2011 by Dancornell (talk | contribs) (Created page with "== Local Storage == Android code examples for local storage: <tt> try { Context context = getApplicationContext(); FileOutputStream stream; stream = c...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Local Storage

Android code examples for local storage:

   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
   }

Section 2

Stuff:

Section 3

Stuff:

Section 4

Stuff: