android - Set Image as backgroundto lock screen and regular screen -


i'm new mobile development - sorry if question stupid. want make application can change (set new image) background lock screen , regular screen (desktop background)

questions are:

1) if can it? because read 1 topic , had seen wrote music application(media services) can change background only/ if right?

2) if can - can give me code example or link right topic?

btw i'm junior in mobile dev, have hard prog. skills,

thank you. regards, david.

to set background image:

wallpapermanager mywallpapermanager; mywallpapermanager.setbitmap (bitmaptodisplay); 

before setting image maybe should resize proper dimensions current device,
check article handling large bitmaps efficiently

for lock screen maybe component useful don't know if there native way of changing image in lock screen


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -