No Activity for android.provider.MediaStore.RECORD_SOUND Intent
Reported by
mmur...@commonsware.com,
Nov 17 2016
|
||
Issue description
Version: 56.0.2905.0 dev (64-bit)
Platform: 8953.0.0 (Official Build) dev-channel cyan
Device: Acer Chromebook R11 C738T
Steps to reproduce: Run an app containing this activity:
public class MainActivity extends Activity {
private static final int REQUEST_ID=1337;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent i=new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(i, REQUEST_ID);
}
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
if (requestCode == REQUEST_ID && resultCode == RESULT_OK) {
Toast.makeText(this, "Recording finished!", Toast.LENGTH_LONG)
.show();
}
finish();
}
}
(from this sample project: https://github.com/commonsguy/cw-omnibus/tree/master/Media/SoundRecordIntent)
Expected result: An audio recording activity, supplied by the system, to appear
Actual result: ActivityNotFoundException
This Intent action is not documented as being optional:
https://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html#RECORD_SOUND_ACTION
And since AFAIK the AOSP ships with an activity that supports this Intent, the Compatibility Definition Document indicates that Play Store-equipped devices should support it as well (even if it is a replacement activity). Hence, developers will expect it to exist.
Thanks!
,
Dec 5 2016
,
Dec 5 2016
Since handling this intent isn't required in CDD/CTS, we'd recommend having a requirement to install apps that can handle it on the app side. Please close the bug if this makes sense.
,
Dec 5 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by elijahtaylor@chromium.org
, Nov 23 2016Owner: djacobo@chromium.org
Status: Assigned (was: Untriaged)