title: Share image on whatsapp in Android "The file format is not supported." error
body: <p>I have an application with share image on whatsapp in android. It was working till now.But now I get the following error </p>
  
  <blockquote>
    <p>"The file format is not supported."</p>
  </blockquote>
  
  <p>Nothing changed on code. </p>
  
  <pre><code>btnWhatsapp.setOnClickListener(new OnClickListener() {
      public void onClick(View v) {   
  
          if (isAppInstalled("com.whatsapp"))   {
             // APP  INSTALLED
             Intent sendIntent = new Intent(Intent.ACTION_SEND);
             String sharetext ="Try my app";
             sendIntent.putExtra(Intent.EXTRA_TEXT,sharetext );
             Uri screenshotUri = Uri.parse("android.resource://"+getPackageName()+"/drawable/"+logofilename);
             sendIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
             sendIntent.setType("image/png");
             sendIntent.setPackage("com.whatsapp");
             v.getContext().startActivity(sendIntent);
  
          }else{
                          Toast.makeText(getApplicationContext(),R.string.nowhatsapp,Toast.LENGTH_SHORT).show();
                  }                   
              }
         });
  </code></pre>