mSafdel
mSafdel

Reputation: 1495

how to get background image in android (java)

I want to get background image of Home screen programmatically in Android and set it to background in my activity in my App. How can i get background image? please guide me.

Upvotes: 0

Views: 245

Answers (1)

Yahya Durrani
Yahya Durrani

Reputation: 153

like this

final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
final Drawable wallpaperDrawable = wallpaperManager.getDrawable();

use the drawable the way you want

Upvotes: 2

Related Questions