title: Set Wallpaper in whatsapp after getting the path
body: <p>I am following this <a href="https://stackoverflow.com/a/16763688/2715065">answer</a> to accomplish my task. Everything works well except the last part, </p>
  
  <pre><code>if(result!=null)
  {
  
      Toast.makeText(getApplicationContext(), "Image saved in Gallery !", Toast.LENGTH_LONG).show();
  
      if(isinint) //check if any app cares for the result
      {
          Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND, Uri.fromFile(new File(result.toString()))); //Create a new intent. First parameter means that you want to send the file. The second parameter is the URI pointing to a file on the sd card. (openprev has the datatype File)
  
          ((Activity) ImageListActivity.this).setResult(Activity.RESULT_OK, shareIntent); //set the file/intent as result
          ((Activity) ImageListActivity.this).finish(); //close your application and get back to the requesting application like GMail and WhatsApp
          return; //do not execute code below, not important
      }
  }
  </code></pre>
  
  <p>At last nothing crash but wallpaper is also not set in whatsapp. </p>
  
  <p>Can anyone please let me know why it is not working?</p>
  
  <p>Any help is appriciated.</p>
  
  <p>Thanks</p>