[Galaxy S Advance I9070 Themes and Apps] phenomarc:
In WallpaperWidget, make method public constructor like this:

.method public constructor <init>(Landroid/content/Context;Landroid/content/res/Configuration;)V
.registers 8
.parameter "paramContext"
.parameter "paramConfiguration"

.prologue
const/4 v4, 0x0

const/4 v3, -0x1

const/4 v2, 0x1

.line 35
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

.line 24
const-string v0, "WallpaperWidget"

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->TAG:Ljava/lang/String;

.line 27
iput-boolean v2, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mIsLiveWallpaper:Z

.line 36
const/4 v0, 0x0

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

.line 37
const-string v0, "/data/data/com.sec.android.gallery3d/lockscreen_wallpaper.jpg"

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->PORTRAIT_WALLPAPER_IMAGE_PATH:Ljava/lang/String;

.line 38
iput-object p1, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mContext:Landroid/content/Context;

.line 39
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "lockscreen_wallpaper"

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

if-ne v0, v2, :cond_23

.line 40
iput-boolean v4, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mIsLiveWallpaper:Z

.line 42
:cond_23
iget-boolean v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mIsLiveWallpaper:Z

if-eqz v0, :cond_28

.line 67
:goto_27
return-void

.line 45
:cond_28
new-instance v0, Landroid/widget/ImageView;

invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

.line 46
iget-object v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

sget-object v1, Landroid/widget/ImageView$ScaleType;->CENTER_CROP:Landroid/widget/ImageView$ScaleType;

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

.line 47
iget-object v0, p0, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

invoke-virtual {p0, v0, v3, v3}, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->addView(Landroid/view/View;II)V

.line 48
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "blur_toggle"

invoke-static {v0, v1, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

packed-switch v0, :pswitch_data_5c

goto :goto_27

.line 50
:pswitch_49
invoke-direct {p0}, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->setLockScreenWallpaper()V

goto :goto_27

.line 53
:pswitch_4d
invoke-direct {p0}, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->BlurImage()V

.line 54
invoke-virtual {p0}, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->updateWallpaper()V

goto :goto_27

.line 57
:pswitch_54
invoke-direct {p0}, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->BlurImage_Multi()V

.line 58
invoke-virtual {p0}, Lcom/android/internal/policy/impl/sec/WallpaperWidget;->updateWallpaper()V

goto :goto_27

.line 48
nop

:pswitch_data_5c
.packed-switch 0x0
:pswitch_49
:pswitch_4d
:pswitch_54
.end packed-switch
.end method

Then, in SecSettings or where you put the toggle, put this in the xml:

<CheckBoxPreference android:title="Your tilte" android:key="blur_toggle" android:summary="Your summary" />

Then, in your smali add this at the top:

.field mBlurLock:Landroid/preference/CheckBoxPreference;

this in method OnCreate:

const-string v1, "blur_toggle"

invoke-virtual {p0, v1}, Lcom/android/settings/[COLOR="red"]YourSmali[/COLOR];->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

iput-object v1, p0, Lcom/android/settings/[COLOR="red"]YourSmali[/COLOR];->mBlurLock:Landroid/preference/CheckBoxPreference;

this in method OnPreferenceChange:

:cond_2
iget-object v0, p0, Lcom/android/settings/[COLOR="red"]YourSmali[/COLOR];->mBlurLock:Landroid/preference/CheckBoxPreference;

invoke-virtual {p2, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

move-result v0

if-ne p1, v5, :cond_0

iget-object v0, p0, Lcom/android/settings/[COLOR="red"]YourSmali[/COLOR];->mBlurLock:Landroid/preference/CheckBoxPreference;

invoke-virtual {v0}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v0

invoke-virtual {p0}, Lcom/android/settings/[COLOR="red"]YourSmali[/COLOR];->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "blur_toggle"

if-nez v0, :cond_3

const/4 v0, 0x0

goto :goto_2

:cond_3
const/4 v0, 0x1

:goto_2
invoke-static {v3, v4, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto :goto_0

and this in method OnPreferenceTreeClick:

:cond_6
iget-object v2, p0, Lcom/android/settings/[COLOR="red"]YourSmali[/COLOR];->mBlurLock:Landroid/preference/CheckBoxPreference;

if-ne p2, v2, :cond_1

invoke-virtual {p0}, Lcom/android/settings/[COLOR="Red"]YourSmali[/COLOR];->getActivity()Landroid/app/Activity;

move-result-object v2

invoke-virtual {v2}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "blur_toggle"

check-cast p2, Landroid/preference/CheckBoxPreference;

invoke-virtual {p2}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v4

if-eqz v4, :cond_7

move v0, v1

:cond_7
invoke-static {v2, v3, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

Change "YourSmali" with the path of the smali you're using in settings.

The smali part is the most difficult, because you will have to match with your values.

If you have problems, let me know.