What does it mean for a method to be deprecated, and how can I resolve resulting errors?
<p>Why do I get a deprecation error on the line containing <code>setWallpaper(bmp)</code>, and how can I resolve it?</p>

<blockquote>
  <p>Error: The method setWallpaper(Bitmap) from the type Context is deprecated</p>
</blockquote>

<pre><code>switch(v.getId()){
 case R.id.bSetWallpaper:
try {
            getApplicationContext().setWallpaper(bmp);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        break;
</code></pre>
