【发布时间】:2015-09-24 04:48:33
【问题描述】:
我看到很多人问过这个问题,比如here、here 和......但我找不到任何解决方案。 但是,我看到一些background app on playstore 可以做到。
此设备是三星 S2
【问题讨论】:
标签: android android-intent android-wallpaper lockscreenwidget
我看到很多人问过这个问题,比如here、here 和......但我找不到任何解决方案。 但是,我看到一些background app on playstore 可以做到。
此设备是三星 S2
【问题讨论】:
标签: android android-intent android-wallpaper lockscreenwidget
通常没有(适当的)关于如何设置锁屏壁纸的文档。 Samsung 不允许这样做。
在某些手机中,我们可以看到我们通过墙纸管理器设置的墙纸,这完全取决于设备库存操作系统。而且我们无法具体控制它。
【讨论】:
Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setDataAndType(Uri.parse(mPath), "image/jpeg");
intent.putExtra("mimeType", "image/jpeg");
startActivity(Intent.createChooser(intent, "Set as: Home Screen"));
【讨论】: