I am currently working on the same thing. The accepted answer is correct, but if you want to use the wallpaper as the background of your application, then you should use the "Wallpaper" theme and call Intent.Action_Set_Wallpaper to select the wallpaper.
public void onCreate(Bundle savedInstanceState) { Activity.this.setTheme(android.R.style.Theme_Wallpaper); super.onCreate(savedInstanceState); setContentView(); }
// when the button is pressed
Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER); startActivity(Intent.createChooser(intent, "Select Wallpaper"));
source share