2

我有一个奇怪的问题MediaProjectionManager。因为一般它可以工作,但在像华为 Y560 这样的设备上我得到这个错误:

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1777)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
at android.app.Activity.startActivityForResult(Activity.java:3794)
at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:46)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:74)
at android.support.v4.app.ActivityCompatJB.startActivityForResult(ActivityCompatJB.java:31)
at android.support.v4.app.ActivityCompat.startActivityForResult(ActivityCompat.java:163)
at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:935)
at android.support.v4.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:1044)
at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:947)
at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:936)
at com.vyda.stream.fragments.streaming.preparation.BeforeScreencastFragment.startScreencastOrAskForPermission(BeforeScreencastFragment.java:112)
at com.vyda.stream.fragments.streaming.preparation.BeforeScreencastFragment$$ViewInjector$2.doClick(BeforeScreencastFragment$$ViewInjector.java:33)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4790)
at android.view.View$PerformClick.run(View.java:19891)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5298)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
4

0 回答 0