[Nexus One Themes and Apps] Daneshm90:
Guide to increasing # of images available to this script.

Note : Always make changes to the folder inside "other\backup" since that folder is wht replaces ur working directory everytime u run the script.

-----------------------------------------------------------------------------------------------------------------

res\values\public.xml

<public type="drawable" name="n98" id="0x7f020062" />

<public type="drawable" name="n99" id="0x7f020063" />

<public type="drawable" name="n100" id="0x7f020064" />

Thats where i stopped. To continue u'd have to follow that format. So next one would be

<public type="drawable" name="n101" id="0x7f020065" />

Now remember, once u reach 0x7f020069, u dont do 0x7f020070 right after, this is hex, so u gotta do

0x7f02006a

0x7f02006b

0x7f02006c

0x7f02006d

0x7f02006e

0x7f02006f

n then 0x7f020070

-----------------------------------------------------------------------------------------------------------------

smali\com\custom\lwp\suvbsib\LiveWallpaperPainting.smali

U gotta insert this for every new image u want. This is where i stopped. Notice the address, 0x7f020064 matches that of n100 in public.xml. That means ur doing something right.

iget-object v2, p0, Lcom/custom/lwp/suvbsib/LiveWallpaperPainting;->bitmaps:[Landroid/graphics/Bitmap;

const/16 v3, 0x63

invoke-virtual {p0}, Lcom/custom/lwp/suvbsib/LiveWallpaperPainting;->getResources()Landroid/content/res/Resources;

move-result-object v4

const v5, 0x7f020064

invoke-static {v4, v5}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

move-result-object v4

aput-object v4, v2, v3

So if u want to have 101 images to use, u'd copy and paste that and modify as follows

iget-object v2, p0, Lcom/custom/lwp/suvbsib/LiveWallpaperPainting;->bitmaps:[Landroid/graphics/Bitmap;

const/16 v3, 0x64

invoke-virtual {p0}, Lcom/custom/lwp/suvbsib/LiveWallpaperPainting;->getResources()Landroid/content/res/Resources;

move-result-object v4

const v5, 0x7f020065

invoke-static {v4, v5}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

move-result-object v4

aput-object v4, v2, v3

Now remember, this is hex, so the addresses have to follow the convention, so after 0x69 u dont do 0x70

Also in this file, on line #44, u'll see

const/16 v0, 0x64

This must always represent how many images u want to use, hence 64 in decimal is 100. It'll always be one higher than the stuff in previous example in orange, thats ok.

-----------------------------------------------------------------------------------------------------------------

smali\com\custom\lwp\suvbsib\R$drawable.smali

This is very similar to public.xml. Heres where i stopped

.field public static final n99:I = 0x7f020063

.field public static final n100:I = 0x7f020064

To add 101, just follow hex convention and do

.field public static final n101:I = 0x7f020065

There, lol good luck.

Once done u'll also have to edit the script to automatically fill in missing images with place holders for the new number of images u added. For that, just edit Run.bat and look for

if %counter% NEQ 101 goto loop

It always has to be 1 higher than ur current number of images, so if u want to use 105 images, change that to

if %counter% NEQ 106 goto loop

Done all set. Now i did this for 50 images, so i know its a lot of work. If people however do want more than 100 images i dont mind doing 1 of the 3 files, but i won't do it all alone again lol.