title: Getting audio from the folder
body: <p>I have an alarm and want to give the choice to user choose the music.
  I have an activity with some code, include this fragment:</p>
  
  <pre><code>Button ring_button = (Button) findViewById(R.id.button2);
  ring_button.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View v) {
          // TODO Auto-generated method stub
          Intent intent_for_ring_button = new Intent();
          intent_for_ring_button.setAction(Intent.ACTION_GET_CONTENT);
          File file = new File(REPORTS_DIRECTORY);
          intent_for_ring_button.setDataAndType(Uri.fromFile(file),"audio/*");
          startActivityForResult(Intent.createChooser(intent_for_ring_button,"Open folder"), 0);
      }
  });
  </code></pre>
  
  <p>and one more activity with alarm that extends <strong>BroadcastReceiver</strong>, where i`m starting next activity with dialog window with some music.
  Here is it:</p>
  
  <pre><code>public class Dialog_window extends ActionBarActivity{
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.dialog_window_bckg);
          getSupportActionBar().hide();
          this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
  
          final MediaPlayer Alarm_mp3 = MediaPlayer.create(Dialog_window.this, R.raw.data_don_t_sing);
          Alarm_mp3.start();
          Alarm_mp3.setLooping(true);
          AlertDialog.Builder builder = new AlertDialog.Builder(Dialog_window.this);
          builder.setTitle("Важное сообщение!")
                  .setMessage("Вставай!")
                  .setIcon(R.drawable.uncle_sam)
                  .setCancelable(false)
                  .setNegativeButton("ОК, встаю, встаю.",
                          new DialogInterface.OnClickListener() {
                              public void onClick(DialogInterface dialog, int id) {
                                  dialog.cancel();
                                  Alarm_mp3.stop();
                                  System.exit(0);
                              }
                          });
          AlertDialog alert = builder.create();
          alert.show();
      }
  
  }
  </code></pre>
  
  <p>How i can realize this? I must get some extras from the first activity or smth else?</p>