title: Creating the folder with password protection
body: <p>I am trying to create the media recorder for Android by creating the folders with password protection and audio files inside.</p>
  
  <p>But now I only can create the folder and audio files which other Apps and user of the Android smartphone to access.</p>
  
  <p>The purpose of implementing password protection is to not to let other Apps or users can access the file and folders unless password is provided? </p>
  
  <p>Are there any ideas how to achieve this besides creating the password entering panel? </p>
  
  <p>The below is my code.</p>
  
  <pre><code>public void onClick(View view) throws Exception {
      if (count == 0) {
  
          tbxRecordStatus.setText("Record");
          btnRecord.setText("Stop Record");
          Toast.makeText(MainActivity.this, "Recording Starts",
                  Toast.LENGTH_SHORT).show();
          String dateInString =  new SimpleDateFormat(
                  "yyyy-MM-dd-HH-mm-ss").format(new Date()).toString();
          String fileName = "TasB_" + dateInString + " record.3gp";
          SDCardpath = Environment.getExternalStorageDirectory();
          myDataPath = new File(SDCardpath.getAbsolutePath()  + "/My Recordings");
          if (!myDataPath.exists())
              myDataPath.mkdir();
  
          audiofile = new File(myDataPath + "/" + fileName);
          recorder = new MediaRecorder();
          recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
          recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
          recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
          recorder.setAudioEncodingBitRate(16);
          recorder.setAudioSamplingRate(44100);
          recorder.setOutputFile(audiofile.getAbsolutePath());
  
  
  
          try
          {
           recorder.prepare();
          }
          catch (Exception e) 
          {
              e.printStackTrace();
          }
          recorder.start();
          count++;
  
      } else {
  
          tbxRecordStatus.setText("Stop");
          btnRecord.setText("Start Record");
          Toast.makeText(MainActivity.this, "Recording Stops",
                  Toast.LENGTH_SHORT).show();
          if (recorder != null) {
              recorder.stop();
              recorder.release();
              recorder = null;
  
          } else {
              tbxRecordStatus.setText("Warning!");
              Toast.makeText(MainActivity.this, "Record First",
                      Toast.LENGTH_SHORT).show();
          }
          count = 0;
      }
  }
  </code></pre>