title: getting an image path from a imageview?
body: <p>I have an <code>ImageView</code> and I want get the path of image and add in a <code>String</code>. I want do this because I need send this to my webservice like a default image</p>
  
  <p>How can I do it ?</p>
  
  <p><strong>ImageView</strong></p>
  
  <pre><code>&lt;ImageView
      android:id="@+id/ivPerfil"
      android:padding="5dp"
      android:layout_width="120dp"
      android:layout_height="120dp"
      android:src="@drawable/icon_usuario"
      android:scaleType="fitXY"
      /&gt;
  </code></pre>
  
  <p><strong>Getting the path</strong></p>
  
  <pre><code>ivPerfil = (ImageView)findViewById(R.id.ivPerfil);
  Drawable img = getResources().getDrawable(R.drawable.icon_usuario);
  String pathImage = img.toString();
  </code></pre>