更改壁纸意图 应用程序在 Nook Color 中崩溃:
我需要为 Nook Color 开发一个壁纸应用程序。之后我安装了 Nook 颜色插件,当我在我的应用程序中使用此代码时,它每次都会崩溃。以下 API 意图允许任何应用程序在 Nook Color 设备中打开壁纸设置管理器 UI
Intent i = new Intent();
i.setAction( "com.bn.nook.CHANGE_WALLPAPER" );
startActivity( i );
Error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.bn.nook.CHANGE_WALLPAPER }
请帮忙,提前致谢。
I need to develop a Wallpaper application for Nook Color. I have installed the Nook color addon after that when i use this code in my app and it gets crashed every time. The below API Intent to allow any application to open the Wallpaper Settings Manager UI in Nook Color device
Intent i = new Intent();
i.setAction( "com.bn.nook.CHANGE_WALLPAPER" );
startActivity( i );
Error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.bn.nook.CHANGE_WALLPAPER }
Please help, Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此意图仅在 Nook 设备上可用。
在任何其他不是专门设计为角落的设备或模拟器上使用它是行不通的。
这就像尝试在未安装 Internet Explorer 的计算机上打开 Internet Explorer 一样。
This intent is only going to be available on Nook device.
Using this on any other device or emulator that isn't specifically designed to be the nook isn't going to work.
It would be like trying to open Internet Explorer on a machine which doesn't have Internet Explorer installed.
您发布的代码是(我假设)官方Nook开发者页面的直接复制粘贴 这里。
该代码本质上并不是错误的,您指定的操作似乎根本不存在 - 您需要从 Developers/Nook API 中找到正确的操作名称。
The code you have posted is a direct copy paste from (i assume) the official Nook Developer page here.
The code isn't inherently wrong, the Action your specifying simply doesn't seem to exist - you need to find the correct Action name from the Developers/Nook API.