Conversion for background

Put your problem here if it does not fit any of the other categories.

Conversion for background

Postby Coralie » Wed Jan 26, 2011 10:44 am

hey guys , Im doing a project and trying to convert

ByteArrayInputStream or byte[] to drawable that will become the wallpaper through the function

layout.setBackgroundDrawable(d);

does anyone knows how can i do that?

Thanks,
Coralie
Coralie
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jan 25, 2011 4:01 pm

Top

Re: Conversion for background

Postby m1shk4 » Wed Jan 26, 2011 12:05 pm

layout.setBackgroundDrawable(Drawable.createFromStream(stream, name));

solves the problem?
m1shk4
Developer
Developer
 
Posts: 38
Joined: Wed Jan 12, 2011 4:26 pm
Location: UA

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 11 guests