title: Android - Sharing image url + Text using Picasso
body: <p>I need to share, an <strong>external image url</strong> together with text, 
  from a WebView but for some reason I get errors on each Picasso override:</p>
  
  <p>Already implemented the Javascript interface in Android.</p>
  
  <pre><code>@JavascriptInterface
      public void shareContent(String text, String imageURL){
          shareData(text, imageURL);
      }
  </code></pre>
  
  <p><strong>Error I get:</strong> <code>Method does not override method from its superclass</code>.</p>
  
  <pre><code>public void shareData(String url) {
      Picasso.with(getApplicationContext()).load(url).into(new AppLink.Target() {
          @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {
              Intent i = new Intent(Intent.ACTION_SEND);
              i.setType("image/*");
              i.putExtra(Intent.EXTRA_STREAM, getLocalBitmapUri(bitmap));
              startActivity(Intent.createChooser(i, "Share Image"));
          }
          @Override public void onBitmapFailed(Drawable errorDrawable) { }
          @Override public void onPrepareLoad(Drawable placeHolderDrawable) { }
      });
  }
  </code></pre>
  
  <p>And the method to get the local saved image</p>
  
  <pre><code>public Uri getLocalBitmapUri(Bitmap bmp) {
      Uri bmpUri = null;
      try {
          File file =  new File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), "share_image_" + System.currentTimeMillis() + ".png");
          FileOutputStream out = new FileOutputStream(file);
          bmp.compress(Bitmap.CompressFormat.PNG, 90, out);
          out.close();
          bmpUri = Uri.fromFile(file);
      } catch (IOException e) {
          e.printStackTrace();
      }
      return bmpUri;
  }
  </code></pre>