[Galaxy S II Android Development] remuntada78:
i changed the first random code

.method public randomimage()V
.locals 6

.prologue
.line 20
new-instance v0, Ljava/util/Random;

invoke-direct {v0}, Ljava/util/Random;-><init>()V

.line 21
.local v0, rand:Ljava/util/Random;
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const/4 v3, 0x5

new-array v3, v3, [Ljava/lang/Integer;

const/4 v4, 0x0

const v5, 0x7f021134

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v5

aput-object v5, v3, v4

const/4 v4, 0x1

const v5, 0x7f021135

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v5

aput-object v5, v3, v4

const/4 v4, 0x2

const v5, 0x7f021136

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v5

aput-object v5, v3, v4

const/4 v4, 0x3

const v5, 0x7f021137

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v5

aput-object v5, v3, v4

const/4 v4, 0x4

const v5, 0x7f021138

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v5

aput-object v5, v3, v4

iput-object v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mImageIds:[Ljava/lang/Integer;

iget-object v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mImageIds:[Ljava/lang/Integer;

move-result-object v3

array-length v3, v3

invoke-virtual {v0, v3}, Ljava/util/Random;->nextInt(I)I

move-result v0

aget-object v3, v3, v0

invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

move-result v3

invoke-virtual {v0, v3}, Landroid/view/View;->setBackgroundResource(I)V

return-void
.end method

with another one like this

.method public randomimage()V
.locals 8

.prologue
.line 17
new-instance v3, Ljava/util/Random;

invoke-direct {v3}, Ljava/util/Random;-><init>()V

.line 18
.local v3, rand:Ljava/util/Random;
const/4 v5, 0x3

invoke-virtual {v3, v5}, Ljava/util/Random;->nextInt(I)I

move-result v5

add-int/lit8 v4, v5, 0x1

.line 20
.local v4, randomNumber:I
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Landroid/view/View;

move-result-object v0

.line 21
.local v0, image:Landroid/widget/ImageView;
new-instance v5, Ljava/lang/StringBuilder;

const-string v6, "image_"

invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v1

.line 22
.local v1, imageName:Ljava/lang/String;
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getResources()Landroid/content/res/Resources;

move-result-object v5

const-string v6, "drawable"

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getPackageName()Ljava/lang/String;

move-result-object v7

invoke-virtual {v5, v1, v6, v7}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v2

.line 24
.local v2, image_ID:I
invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

.line 26
return-void
.end method

and i got again this error

W/dalvikvm( 2351): VFY: copyRes1 v0<-v9 cat=3 type=0

W/dalvikvm( 2351): VFY: rejecting opcode 0x0c at 0x000e

W/dalvikvm( 2351): VFY: rejected Lcom/android/systemui/statusbar/phone/PhoneStatusBar;.randomimage ()V

W/dalvikvm( 2351): Verifier rejected class Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

W/dalvikvm( 2351): Class init failed in newInstance call (Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)

D/AndroidRuntime( 2351): Shutting down VM

W/dalvikvm( 2351): threadid=1: thread exiting with uncaught exception (group=0x41ed02a0)

but what it mean?