OWASP Mobile Security Project Platform Specific Guidance AndroidCode Draft

From OWASP
Revision as of 06:34, 20 October 2011 by Dancornell (Talk | contribs)

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

Contents

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: