Tuesday 6 May 2014

Set Device Wallpaper As a App Background

Hi Friends,

Here i am going to post a very fantastic or useful code for you to make your android programming more interesting. Have you ever think that what will happen if your mobile wallpaper, treated as like your Android Application background, if you change you mobile wallpaper then automatically your Android Application background also will change the same isn't it interesting, no need to change Application background just change your mobile wallpaper and you Application background will change with same background........

Try the following code.


For this you just need to change in your Application Manifest file. Just change the default Theme from application tag with following code.


Default Theme :
android:theme="@style/AppTheme"

Change With :
android:theme="@android:style/Theme.Wallpaper" 


Just changing this line from your manifest, it will change you App background with mobile wallpaper 


Enjoy coding ............................... :) 


Check Android Apps on Google Play

https://play.google.com/store/apps/developer?id=Metro%20App%20Solution&hl=en

 

No comments:

Post a Comment