Hi i am recording audio in android using the following intent
public void onClick (View arg0) {
开发者_如何学运维 // TODO Auto-generated method stub
Intent intent =
new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, RQS_RECORDING);
}});
}
i have tried set max duration but it doesn't work please help thank you
For video I know you can use
intent.putExtra("android.intent.extra.durationLimit", 30000);
(substituting 30000 for the length you need). I recommend giving this a try.
精彩评论