package wycliffeassociates.recordingapp;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class MainMenuListener extends Activity{

    private ImageButton btnRecord;
    private ImageButton btnFiles;
    private ImageButton btnSettings;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        btnRecord = (ImageButton) findViewById(R.id.record);
        btnRecord.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(v.getContext(), CanvasScreen.class);
                startActivityForResult(intent, 0);
            }
        });

        btnFiles = (ImageButton) findViewById(R.id.files);
        btnFiles.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(v.getContext(), AudioFiles.class);
                startActivityForResult(intent, 0);
            }
        });

        btnSettings = (ImageButton) findViewById(R.id.settings);
        btnSettings.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(v.getContext(), Settings.class);
                startActivityForResult(intent, 0);
            }
        });
    }



}

@@ -115,17 +115,72 @@
 oid.
-os.Bundle
+net.Uri;%0Aimport android.os.Bundle;%0Aimport android.os.Environment
 ;%0Aim
@@ -239,16 +239,45 @@
 utton;%0A%0A
+import java.util.ArrayList;%0A%0A
 public c
@@ -1476,32 +1476,34 @@
                 
+/*
 Intent intent = 
@@ -1588,32 +1588,1870 @@
 sult(intent, 0);
+*/%0A%0A                ArrayList%3CUri%3E audioUris = new ArrayList%3CUri%3E();%0A                audioUris.add(Uri.parse(Environment.getExternalStorageDirectory().getPath() + %22/AudioRecorder/test.wav%22));%0A                audioUris.add(Uri.parse(Environment.getExternalStorageDirectory().getPath() + %22/AudioRecorder/thething.wav%22));%0A                audioUris.add(Uri.parse(Environment.getExternalStorageDirectory().getPath() + %22/AudioRecorder/spen.wav%22));%0A%0A                Uri audioUri = Uri.parse(Environment.getExternalStorageDirectory().getPath() + %22/AudioRecorder/test.wav%22);%0A%0A                ArrayList%3CString%3E stringL = new ArrayList%3CString%3E();%0A                stringL.add(%22yo%22);%0A                stringL.add(%22yo2%22);%0A                stringL.add(%22yo3%22);%0A%0A                Intent sendIntent = new Intent();%0A                sendIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);%0A                sendIntent.setAction(Intent.ACTION_SEND);%0A                //sendIntent.setAction(Intent.ACTION_SEND_MULTIPLE);%0A                //sendIntent.setAction(Intent.EXTRA_ALLOW_MULTIPLE);%0A                //sendIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, audioUris);%0A                //sendIntent.putStringArrayListExtra(Intent.EXTRA_ALLOW_MULTIPLE, stringL);%0A%0A                sendIntent.putExtra(Intent.EXTRA_STREAM, audioUri);%0A                //sendIntent.putParcelableArrayListExtra(Intent.EXTRA_TEXT, audioUris);%0A                //sendIntent.putStringArrayListExtra(%22test%22, stringL);%0A%0A                //sendIntent.putExtra(Intent.EXTRA_TEXT, stringL);%0A%0A                //sendIntent.setType(%22text/plain%22);%0A                sendIntent.setType(%22audio/*%22);%0A                startActivity(Intent.createChooser(sendIntent, %22Export Audio%22));%0A                //startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.diag_export)));%0A
 %0A            %7D%0A 

test export app