eclipse - How I can change the Background in runtime in Android? -


i want make simple program 2 radiobutton (rd1 , rd2), can change background picture s1, or s2, depend on selected. how can make it? tried background.setbackground (background radiogroup's name), didn't work.

try changing android wallpaper.

http://developer.android.com/resources/samples/apidemos/src/com/example/android/apis/app/setwallpaperactivity.html

and if want change background current activity means

if layout lay means then,

lay.backgrounddrawable(r.drawable.abc); 

in onclick listenerof ur radio button

sure dude..let me know happened...

thank you.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -