DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 2 of 2

Thread: setting the home wallpaper

  1. Junior Droid
    Benkr0n's Avatar
    Member #
    22584
    Join Date
    Jan 2010
    Posts
    9
    Phone
    Enter Current Phone Here
    #1

    setting the home wallpaper

    on the android dev resource site, the code it says to set the wallpaper is..

    Code:
    public void setStream(InputStream data)
    my current setup...
    Code:
    InputStream  is = getContentResolver().openInputStream(imageUri);
    setStream(InputStream data);
    it gives me an error on the second line at data...
    ive tried changing data to is and imageUri ...still gives error at that point

    what am i doing wrong?
  2.  
     
     
     
  3. Junior Droid
    Benkr0n's Avatar
    Member #
    22584
    Join Date
    Jan 2010
    Posts
    9
    Phone
    Enter Current Phone Here
    #2
    bump...

    this is what i have now
    Code:
    public void onClick(View view) {
                if (imageUriString == null) {
                        showMsg("Please Select An Image");
                }
                else {                    
                        InputStream is = getContentResolver().openInputStream(imageUriPortrait);
                        bgImage = BitmapFactory.decodeStream(is);
                        Context context = this.getBaseContext();
                        context.setWallpaper(bgImage);
                }
    }
    how am i using this wrong...

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. open home: setting to home key
    By stemiched89 in forum Android Applications
    Replies: 7
    Last Post: 01-31-2010, 07:09 PM
  2. Make Wallpaper Show-up in the Wallpaper gallery?
    By justbob in forum Android Themes
    Replies: 2
    Last Post: 01-25-2010, 08:37 AM
  3. GDE Home - Homescreen Setting?
    By Big Lou in forum Android Applications
    Replies: 2
    Last Post: 12-11-2009, 01:15 PM
  4. How did I get a new wallpaper on my home screens?
    By Chief Wahoo in forum Android General Discussions
    Replies: 8
    Last Post: 12-06-2009, 02:17 PM
  5. How do I change the home screen wallpaper?
    By JimMariner in forum Droid FAQ
    Replies: 0
    Last Post: 11-07-2009, 12:59 PM

Search tags for this page

android set wallpaper setstream

,

android setstream() wallpaper.setstream

,

android wallpaper.setstream

,

android, setwallpaper setstream

,

open home set wallpaper

,

public void setstream (inputstream data)

,

setstream android

,

setwallpaper android setstream

,

wallpaper setstream

Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+