ウィジェットを使用して壁紙を変更しようとしています。私はそれを達成するために以下のコードを使用します: しかし、コードが実行されるたびに一定の遅延があります。
この遅延を回避する方法はありますか。
...
WallpaperManager wallpaperManager = WallpaperManager.getInstance (context);
Bitmap bitmap = BitmapFactory.decodeStream (new FileInputStream (file));
//here @file is fetched from a phone storage
wallpaperManager.setBitmap (bitmap);
...