New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 666120 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

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!

 
Cc: yusukes@chromium.org
Owner: djacobo@chromium.org
Status: Assigned (was: Untriaged)
@David/Yusuke: Should we include an extra system package to handle this intent?
Owner: kinaba@chromium.org
(reassigning to kinaba@ per b/33109180)

Comment 3 by yoshi@chromium.org, 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.
Status: WontFix (was: Assigned)

Sign in to add a comment