1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

help with live wallpapers

Discussion in 'Android General Discussions' started by alm0614, Mar 29, 2010.

  1. alm0614
    Offline

    alm0614 New Member

    Joined:
    Nov 18, 2009
    Messages:
    1,240
    Likes Received:
    5
    Trophy Points:
    0
    For those of you that have messed with live wallpapers,

    1) how can you use colors other than the default green, blue, red, and yellow. I have gone in and removed the green and yellow so i just use red and blue, but does anyone know how to use a completely different color

    2) does anyone know how to add a live wallpaper to the livewallpapers.apk so far i have just been replacing stock ones, but if wanted to add a whole different one (i would copy and paste the rs files with a few mods) but need to know what the naming scheme would be as well as if any of the .xmls would need changing

    any help is much appreciated
  2. starscream
    Offline

    starscream Decepticon Premium Member

    Joined:
    Mar 3, 2010
    Messages:
    317
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Idaho
    A1. you need to change the color codes in the .rs file to the proper values..
    IN RED
    Code:
    void setColor(int c) {
        if (State->mode == 1) {
            // purple
            color([COLOR="Red"]1.0f, 0.0f, 1.0f, 0.8f[/COLOR]);
        } else if (c == 0) {
            // Blue
            color([COLOR="red"]0.0f, 0.4f, 1.0f, 0.8f[/COLOR]);
        } else if (c == 1) {
            // white
            color([COLOR="red"]1.0f, 1.0f, 1.0f, 0.8f[/COLOR]);
        } else if (c == 2) {
            // pink
            color([COLOR="red"]1.0f, 0.4f, 0.8f, 0.8f[/COLOR]);
        } else if (c == 3) {
            // yellow
            color([COLOR="red"]1.0f, 1.0f, 0.0f, 0.8f[/COLOR]);
        }
    }
    the code is (red, green, blue, transparency)
    Code:
    ie. (1.0f, 0.0f, 0.f0, 0.9f) would be pure red
    to get codes correct for a specific color use an RGB color chart..
    IMPORTANT---- RGB code looks like this for Orange for example 255-165-0.. to get the RGB code into the code used by the program you simply devide the RGB values by 255... so... orange.. 255-165-0 would be (1.0, 0.6, 0.0, 0.9)


    the transparency i never really mess with.. I belive less # value is more transparent

    A2. you got me... lol im not much of a programmer but i would love to find out how to do this
  3. alm0614
    Offline

    alm0614 New Member

    Joined:
    Nov 18, 2009
    Messages:
    1,240
    Likes Received:
    5
    Trophy Points:
    0
    i heard the 4th value was the speed of the dot? is it the transparency, with 1.0 being not transparent at all?
  4. starscream
    Offline

    starscream Decepticon Premium Member

    Joined:
    Mar 3, 2010
    Messages:
    317
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Idaho
    You know like i said i've NEVER even messed with it so for all i know 0.0 could be opaque and 1.0 being transparent... I am fairly certain however that its not speed because I think that is controlled in a different section
  5. alm0614
    Offline

    alm0614 New Member

    Joined:
    Nov 18, 2009
    Messages:
    1,240
    Likes Received:
    5
    Trophy Points:
    0
    I have all mine set to 1.0 and they are not transparent..
  6. iPirate
    Offline

    iPirate New Member

    Joined:
    Dec 26, 2009
    Messages:
    1,437
    Likes Received:
    0
    Trophy Points:
    0
    Where are these files found?
  7. alm0614
    Offline

    alm0614 New Member

    Joined:
    Nov 18, 2009
    Messages:
    1,240
    Likes Received:
    5
    Trophy Points:
    0
    in the livewallpapers.apk