English 中文(简体)
献身后没有连接的媒体控制员被杀,重新启用
原标题:Media controller not connecting after app is killed and relaunched

我先向媒体3(第2.0版)迁移,我先把uamp作为准则。 有一个类别:Music ServiceConnection ,按名称所示,将国际建筑工程师协会与媒体浏览器服务等连接起来。

在我估计的Im中,我需要观察/收集游击状态,用这个类别中的gger2提供/拒绝单一州案例。

除此以外,一切都行之有效,除非在音频上演时我杀手(远离最近的镜子),否则,下台发射音乐服务会(我有一张纸面的纸面板,没有被打上,因此媒体浏览器没有连接,没有任何(与视听有关的)作品。

• 从媒体主计长那里获得警报记录:

The controller is not connected. Ignoring setMediaItems()
The controller is not connected. Ignoring prepare()

第二次杀戮,然后重新启动这一问题,但这一问题却成了一种坏的未爆炸物质。

Killing the app while audio has been paused doesn t cause the issue on the second app launch. Not using a singleton also fixes it for some reason, however that causes other issues, so it s not a viable option.

问题回答

当我转向轻度和黑暗模式时,我也存在同样的问题。

The controller is not connected. Ignoring setMediaItems() The controller is not connected. Ignoring prepare()

现在是否有解决办法?

请告诉我,你是否找到解决办法。

非常感谢。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签