2015-12-03 108 views
0

我编译了STB平台的示例电视输入。按照自述下 https://github.com/googlesamples/androidtv-sample-inputs 运行直播频道应用程序时,我观察有以下例外和应用程序未能启动java.lang.SecurityException:不允许访问内容://android.media.tv/watched_program

/ActivityManager(2708):启动PROC 3672:com.google.android.tv/u0a47 for com.google.android.tv/.recommendation.NotificationService E/DatabaseUtils(3462):向E/DatabaseUtils包裹写入异常( 3462):java.lang.SecurityException:不允许访问 content:// android.media.tv/watched_program

RichTv和Simple服务在后台运行。 如何解决这个异常?

回答

0

我从错误相信你可能需要两个权限添加到您的清单:

<!-- Required to update or read existing channel and program information in TvProvider. --> 
<uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" /> 
<!-- Required to update channel and program information in TvProvider. --> 
<uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" /> 

如果您需要更多的帮助,你可以看看我的项目:http://github.com/fleker/cumulustv

+0

我在清单中声明这些权限但仍然面临这个问题。 – andchak

相关问题