take Sound Recorder Intent - Android android.media

Android examples for android.media:Sound

Description

take Sound Recorder Intent

Demo Code

import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;

public class Main{


    private static Intent takeSoundRecorderIntent() {
        Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
        intent.setType("audio/amr");
        return intent;
    }// w w w  . ja  v  a  2s . c o m

}

Related Tutorials