[Galaxy S Plus I9001 Android Development] texten:
thanks for reply,

yeah, but i want to make the lockscreen wallpaper easyly changeable, because i'm trying to build an own rom ;)

i used google, i read a feld hundrets of threads, but nowhere i can find a solution for fetch the wallpaper which i setup in settings. everybody is asking and no one has a how-to. :(

i looked in the jkay-lockscreens codes, there is a implement of lockscreenwallpaper.smali in android.policy.jar. perherps someone can port this?!

.class Lcom/android/internal/policy/impl/LockscreenWallpaper;
.super Landroid/widget/FrameLayout;
.source "LockscreenWallpaper.java"

# instance fields
.field private final TAG:Ljava/lang/String;

.field private final WALLPAPER_IMAGE_PATH:Ljava/lang/String;

.field bitmapWallpaper:Landroid/graphics/Bitmap;

.field private mLockScreenWallpaperImage:Landroid/widget/ImageView;

# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
.parameter "context"
.parameter "attrs"

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

.line 17
const-string v0, "LockscreenWallpaperUpdater"

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

.line 19
const-string v0, "/data/data/com.aokp.romcontrol/files/lockscreen_wallpaper.jpg"

iput-object v0, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->WALLPAPER_IMAGE_PATH:Ljava/lang/String;

.line 28
invoke-virtual {p0}, Lcom/android/internal/policy/impl/LockscreenWallpaper;->setLockScreenWallpaper()V

.line 29
return-void
.end method

# virtual methods
.method protected onDetachedFromWindow()V
.registers 2

.prologue
.line 48
iget-object v0, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->bitmapWallpaper:Landroid/graphics/Bitmap;

if-eqz v0, :cond_9

.line 49
iget-object v0, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->bitmapWallpaper:Landroid/graphics/Bitmap;

invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

.line 51
:cond_9
invoke-static {}, Ljava/lang/System;->gc()V

.line 52
invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V

.line 53
return-void
.end method

.method public setLockScreenWallpaper()V
.registers 6

.prologue
const/4 v4, -0x1

.line 32
new-instance v1, Ljava/io/File;

const-string v2, "/data/data/com.aokp.romcontrol/files/lockscreen_wallpaper.jpg"

invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

.line 34
.local v1, file:Ljava/io/File;
invoke-virtual {v1}, Ljava/io/File;->exists()Z

move-result v2

if-eqz v2, :cond_3e

.line 35
new-instance v2, Landroid/widget/ImageView;

invoke-virtual {p0}, Lcom/android/internal/policy/impl/LockscreenWallpaper;->getContext()Landroid/content/Context;

move-result-object v3

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

iput-object v2, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

.line 36
iget-object v2, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

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

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

.line 37
iget-object v2, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

invoke-virtual {p0, v2, v4, v4}, Lcom/android/internal/policy/impl/LockscreenWallpaper;->addView(Landroid/view/View;II)V

.line 38
const-string v2, "/data/data/com.aokp.romcontrol/files/lockscreen_wallpaper.jpg"

invoke-static {v2}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;)Landroid/graphics/Bitmap;

move-result-object v2

iput-object v2, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->bitmapWallpaper:Landroid/graphics/Bitmap;

.line 39
new-instance v0, Landroid/graphics/drawable/BitmapDrawable;

invoke-virtual {p0}, Lcom/android/internal/policy/impl/LockscreenWallpaper;->getResources()Landroid/content/res/Resources;

move-result-object v2

iget-object v3, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->bitmapWallpaper:Landroid/graphics/Bitmap;

invoke-direct {v0, v2, v3}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

.line 40
.local v0, d:Landroid/graphics/drawable/Drawable;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockscreenWallpaper;->mLockScreenWallpaperImage:Landroid/widget/ImageView;

invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

.line 44
.end local v0 #d:Landroid/graphics/drawable/Drawable;
:goto_3d
return-void

.line 42
:cond_3e
invoke-virtual {p0}, Lcom/android/internal/policy/impl/LockscreenWallpaper;->removeAllViews()V

goto :goto_3d
.end method