是否有可能使用code部分线路设置动态壁纸。例如,我想告诉我的用户是一个活的壁纸,请点击这里设置。
Is it possible to set a live wallpaper using some lines of code. For example, i want to tell my users that a live wallpaper is available "click here to set it".
好了,就这样我停止获取downvotes一个过时的答案。下面一个更强大的解决方案请参见错误454的回答将直接向用户发送壁纸preVIEW屏幕上果冻豆及以上的设备。
Alright, just so I stop getting downvotes for an outdated answer. Please see Error 454's answer below for a more robust solution which will send the user directly to the wallpaper preview screen on Jelly Bean and up devices.
========================================
========================================
下面是如何开始的壁纸选择器,从中用户可以选择你的壁纸。敬酒只是一种方式来解释用户发生了什么事情。
Here's how to start the wallpaper chooser, from which the user can select your wallpaper. The toast is just a way to explain to the user what's going on.
Toast toast = Toast.makeText(this, "Choose '<WALLPAPER NAME>' from the list to start the Live Wallpaper.",Toast.LENGTH_LONG);
toast.show();
Intent intent = new Intent();
intent.setAction(WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER);
startActivity(intent);
上一篇:如何创建一个非模态形式,而是阻止?创建一个、形式、模态
下一篇:设置gridview的列宽动态时的AutoGenerateColumns =&QUOT;真&QUOT;动态、gridview、QUOT、AutoGenerateColumns