我开发了一个三星智能电视应用程序,在三星模拟器中测试它,它工作正常.
现在我将如何在电视上测试它,而不是将其上传到三星应用商店.
我注意到Facebook似乎支持使用令牌/ PIN码而非用户/登录设备登录,以便在电视或控制台等设备上使用:
https://www.facebook.com/device
在搜索开发页面时,我可以看到有一篇与此相关的文章,但至少在德国,有人给出了404.
有人有更多相关信息吗?
谢谢
我和Google+上的Android TV开发社区的其他成员正在开展一个项目,它需要访问通知访问权限.例如:权限pushbullet请求,以便它可以镜像您的手机通知.在尝试执行它时,它会将我推回打开的应用程序屏幕并且什么都不做.任何人的帮助都会很棒!谢谢!这是项目,如果有帮助 - https://github.com/Fleker/AndroidTVNotification
安东尼
我正在为Tv构建android应用程序,我将主题设置为Theme.Leanback在android-support-v17-leanback.jar支持库中定义.但是,当我构建我的应用程序时收到错误,说" 错误:找不到与给定名称匹配的资源(在'主题'中,值为'@ style/Theme.Leanback') "
我添加了android-support-v17-leanback库建立路径我仍然得到相同的错误.
甚至已经通过导入eclipse构建了android-support-v17-leanback库,我在项目的R.txt文件中看到了资源ID,我已经将这个构建的项目添加到我的应用程序但仍然是同样的错误.
我错过了什么?请提出一些解决上述问题的建议.
谢谢,讲述者
android television android-theme android-support-library android-tv
我试图用一个自定义视图控件创建一个自定义演示者,将视频播放到表面视图中,并在第一次绑定后收到此错误消息。有什么问题?我没有设置任何布尔值来冻结裁员或类似的信息。
整个项目可以在这里找到
java.lang.IllegalStateException: Do not setLayoutFrozen in layout or scroll
at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2164)
at android.support.v7.widget.RecyclerView.setLayoutFrozen(RecyclerView.java:1750)
at android.support.v17.leanback.app.BaseRowFragment.onTransitionStart(BaseRowFragment.java:199)
at android.support.v17.leanback.app.RowsFragment.onExpandTransitionStart(RowsFragment.java:483)
at android.support.v17.leanback.app.BrowseFragment.startHeadersTransitionInternal(BrowseFragment.java:435)
at android.support.v17.leanback.app.BrowseFragment.access$200(BrowseFragment.java:77)
at android.support.v17.leanback.app.BrowseFragment$3.onRequestChildFocus(BrowseFragment.java:546)
at android.support.v17.leanback.widget.BrowseFrameLayout.requestChildFocus(BrowseFrameLayout.java:124)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:740)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:740)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:740)
at android.support.v7.widget.RecyclerView.requestChildFocus(RecyclerView.java:2081)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:740)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:740)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:740)
at android.support.v7.widget.RecyclerView.requestChildFocus(RecyclerView.java:2081)
at android.view.ViewGroup.addViewInner(ViewGroup.java:4341)
at android.view.ViewGroup.addView(ViewGroup.java:4145)
at android.view.ViewGroup.addView(ViewGroup.java:4086)
at android.support.v7.widget.RecyclerView$5.addView(RecyclerView.java:591)
at android.support.v7.widget.ChildHelper.addView(ChildHelper.java:107)
at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:6708)
at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6666)
at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6654)
at android.support.v17.leanback.widget.GridLayoutManager$2.cre ateItem(GridLayoutManager.java:1473)
at android.support.v17.leanback.widget.SingleRow.appendVisibleItems(SingleRow.java:111)
at android.support.v17.leanback.widget.Grid.appendOneColumnVisibleItems(Grid.java:364)
at android.support.v17.leanback.widget.GridLayoutManager.appendOneColumnVisibleItems(GridLayoutManager.java:1696)
at android.support.v17.leanback.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:1881)
at android.support.v7.widget.RecyclerView.disp atchLayoutStep2(RecyclerView.java:3026)
at android.support.v7.widget.RecyclerView.disp atchLayout(RecyclerView.java:2903)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3277)
at …Run Code Online (Sandbox Code Playgroud) 我是电视布局设计的新手.据参考,电视应用Leanback广泛使用主题系统,并提供一些专门为电视开发的小部件和类.但Leanback功能非常有限.
我想创建一个TabLayout由其提供的布局AppCompact.为此,活动必须使用,AppCompact theme但在片段我使用BrowserFragment提供Leanback.因此,当我添加AppCompact活动时,片段崩溃与布局参数问题.
Binary XML file line #21: Binary XML file line #21: You must supply a layout_width attribute.
Run Code Online (Sandbox Code Playgroud)
是不是可以在电视应用中使用这两个主题?
我用TOAST项目为智能电视创建了一个应用程序.在开发过程中,我用tizen模拟器和tizen工作室测试一切,一切都很好.
完成开发后,我尝试在orsay TV和orsay模拟器上运行应用程序,不幸的是在该平台上存在很多问题.我修复了设计中的一些问题,但我无法解决主要问题.
当我运行应用程序时,控制台中有一行说:deviceready has not fired after 5 seconds.而且我不能使用任何TOAST api功能.
我创建了一个空项目,并完成了这个页面所说的内容:https://github.com/Samsung/cordova-plugin-toast#prepare-to-start
但我又得到了同样的错误.请帮我.
这是日志:
cordova/platform: orsay bootstrap BEGIN cordova.js:1365
adding proxy for NetworkStatus cordova.js:887
adding proxy for Console cordova.js:887
adding proxy for Device cordova.js:887
adding proxy for Globalization cordova.js:887
cordova/platform: orsay bootstrap END cordova.js:1460
adding proxy for toast.inputdevice cordova.js:1880
return Window cordova.js:1880
adding proxy for toast.tvwindow cordova.js:1880
return Window cordova.js:1880
adding proxy for toast.tvchannel cordova.js:1880
adding proxy for toast.tvaudiocontrol cordova.js:1880
adding proxy for toast.drminfo cordova.js:1880 …
这是我的代码:我在 Android MainActivity 中响应按键事件,并使用 BasicMessageChannel 发布按键消息:
public class MainActivity extends FlutterActivity {
private static final String CHANNEL = "scroll";
private static final String KEY_LEFT = "keyLeft";
private static final String KEY_RIGHT = "keyRight";
private BasicMessageChannel messageChannel;
private FlutterView flutterView;
private String[] getArgsFromIntent(Intent intent) {
// Before adding more entries to this list, consider that arbitrary
// Android applications can generate intents with extra data and that
// there are many security-sensitive args in the binary.
ArrayList<String> args = new ArrayList<String>(); …Run Code Online (Sandbox Code Playgroud) 当我在电视上安装应用程序时,我可以运行它并执行所有操作,但我不知道为什么应用程序图标没有显示在电视的主屏幕上。主要是它不显示在 1080p 电视上
这是我的 AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.demo.tv">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<permission
android:name="com.app.demo.tv.ACCESS_VIDEO_DATA"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".Application"
android:allowBackup="true"
android:banner="@drawable/app_icon"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".HomeActivity"
android:label="@string/app_name"
android:theme="@style/HomeTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/LandingAndOtherTheme" />
</application>
</manifest>
Run Code Online (Sandbox Code Playgroud) 我们可以为三星电视制作 Flutter 应用吗?如果是,从哪里开始,我的意思是有可用的文档吗?如果互联网上有任何适用于三星电视的演示 flutter 应用程序,请分享链接。
television ×10
android ×5
dart ×2
flutter ×2
leanback ×2
android-tv ×1
console ×1
cordova ×1
facebook ×1
javascript ×1
keyevent ×1
launcher ×1
oauth ×1
permissions ×1
smart-tv ×1
system ×1
testing ×1