如何从活动内部启动我的壁纸的预览/选择壁纸活动?
我认为我的问题相当简单......我如何启动标准活动来从活动(同一应用程序)中预览我的动态壁纸?
*编辑:在Logcat中...这是启动我想使用的意图时的条目...
04-06 09:44:08.369:INFO/ActivityManager(17452):启动:Intent { cmp=com.android. pid.livepicker/.LiveWallpaperPreview(有额外内容)} 来自 pid 21944
I think my question is fairly straight forward... how do I launch the standard activity for previewing my Live Wallpaper from within an Activity (of the same application)?
*Edit: In Logcat... here is the entry when you launch the intent I want to use...
04-06 09:44:08.369: INFO/ActivityManager(17452): Starting: Intent { cmp=com.android.wallpaper.livepicker/.LiveWallpaperPreview (has extras) } from pid 21944
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的意思是这样的吗?
使用以下方式打开该活动:
意图 i = new Intent(this, [活动名称]);
startActivity(i);
Do you mean something like this?
Open that activity using:
Intent i = new Intent(this, [Activityname]);
startActivity(i);
哈哈哈..这个答案来得有点晚了。 ;-) 但是,我认为它还没有得到正确的回答,所以这里...我收集到的是您想要启动壁纸选择器。根据 Android 版本的不同,有两种方法可以实现此目的,如下所示。您只能在版本 16 之后指定您的壁纸。否则,您将启动选择器并由用户指定壁纸。
Hahaha.. This answer is coming a little late. ;-) But, I don't think it's been answered correctly yet so here goes... What I gather is that you want to launch the wallpaper chooser. There's two ways to do that depending on which android version, you'll see below. You can only specify YOUR wallpaper after version 16. Otherwise, you launch the chooser and the user specifies the wallpaper.