I made an application to set wallpaper and worked great! The problem is that I changed the Manifest to this:
android:theme="@android:style/Theme.Dialog"
And now the application changes the wallpaper but the home screen doesn't refresh.
If I slide my finger on the phone and refresh the homescreen then the wallpaper refreshes and appears my picture.
In simulator it works fine.
My phone is Samsung Galaxy SCL.
the code I use is this one:
WallpaperManager wpm;
wpm = WallpaperManager.getInstance(getApplicationContext());
Bitmap bm1, bm2;
bm1 = BitmapFactory.decodeFile(--file path .png--);
bm2 = Bitmap.createScaledBitmap(bmFondo, 960, 800, false);
wpm.setBitmap(bm2);
The app works well if I don't use Theme.Dialog