@OverrIDepublic voID onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentVIEw(R.layout.equalizertab); f } } else { try { ((GlobalState) getApplicationContext()) .resetEQ(); } catch (remoteexception re) { // Todo: } } }});
记录下面的猫:
05-25 11:52:16.630: E/AndroIDRuntime(19088): FATAL EXCEPTION: main05-25 11:52:16.630: E/AndroIDRuntime(19088): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.androID.APIs.media/com.example.androID.APIs.media.AudioFxDemoActivity}: java.lang.RuntimeException: Cannot initialize Visualizer engine,error: -105-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:1818)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1834)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.ActivityThread.access0(ActivityThread.java:122)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1027)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.os.Handler.dispatchMessage(Handler.java:99)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.os.Looper.loop(Looper.java:132)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.ActivityThread.main(ActivityThread.java:4126)05-25 11:52:16.630: E/AndroIDRuntime(19088): at java.lang.reflect.Method.invokeNative(Native Method)05-25 11:52:16.630: E/AndroIDRuntime(19088): at java.lang.reflect.Method.invoke(Method.java:491)05-25 11:52:16.630: E/AndroIDRuntime(19088): at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)05-25 11:52:16.630: E/AndroIDRuntime(19088): at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:602)05-25 11:52:16.630: E/AndroIDRuntime(19088): at dalvik.system.NativeStart.main(Native Method)05-25 11:52:16.630: E/AndroIDRuntime(19088): Caused by: java.lang.RuntimeException: Cannot initialize Visualizer engine,error: -105-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.media.audiofx.Visualizer.<init>(Visualizer.java:182)05-25 11:52:16.630: E/AndroIDRuntime(19088): at com.example.androID.APIs.media.AudioFxDemoActivity.setupVisualizerFxAndUI(AudioFxDemoActivity.java:151)05-25 11:52:16.630: E/AndroIDRuntime(19088): at com.example.androID.APIs.media.AudioFxDemoActivity.onCreate(AudioFxDemoActivity.java:53)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)05-25 11:52:16.630: E/AndroIDRuntime(19088): at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:1782)解决方法 请参阅以下链接您可以在AudioFxDemo类中找到均衡器
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/AudioFxDemo.html
这是您可以找到解决权限的链接:
Android Visualizer implementation crash
总结以上是内存溢出为你收集整理的如何在android中设置音频均衡器全部内容,希望文章能够帮你解决如何在android中设置音频均衡器所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)