openFileOutput from surfaceview
<p>i have problem with </p>

<blockquote>
  <p>public abstract FileOutputStream openFileOutput (String name, int mode)</p>
</blockquote>

<p>It is work when i use Activity but when 
Im us surface View nothing happen , the code is below :</p>

<pre><code>   public  void save(Context cxt, String data, 
           String filename) {
        FileOutputStream fos;
        try {
        fos = ctx.openFileOutput(filename, Context.MODE_PRIVATE);
        ObjectOutputStream oos = new ObjectOutputStream(fos);
        oos.writeObject(data); 
        oos.flush();
        oos.close();
    } catch (FileNotFoundException e) {
        e.printStackTrace();
    }catch(IOException e){
        e.printStackTrace();
    }
        .
        .
          @Override
         public void surfaceCreated(SurfaceHolder holder) {
         save(context,"sometext","some.txt");

         }



              .
              .
   }
</code></pre>

<p>nothing happen when i call fuction save(context,"sometext","some.txt"); 
( i try found this file in emulator )</p>

<p>I want save data in Activity or  Surface View and then call it from Surface View or Activity</p>

<p>Save - load  :</p>

<blockquote>
  <p>acitivy - activity : work</p>
  
  <p>acitivy - surface view : don't work</p>
  
  <p>surfaceview - activity : don't work</p>
  
  <p>surfaceview - Surfaceview :don't work</p>
</blockquote>

<p>Maybe i call wrong this function, someone know?</p>
