title: I'm trying to share a file from my android app, but iIm getting an error like file not supported or unknown file
body: <p>I'm trying to share a file from my android app, but I'm getting an error like file not supported or unknown file.</p>
  <pre><code>CommonMethods commonMethods = new CommonMethods();
  String internalFile = commonMethods.getDate();
  String sharepath = Environment.getExternalStorageDirectory() + &quot;/My Records/&quot; + internalFile + &quot;/&quot;;
  Uri urii = Uri.parse(sharepath);
  Intent share = new Intent(Intent.ACTION_SEND); 
  share.setType(&quot;audio/*&quot;);
  share.putExtra(Intent.EXTRA_STREAM,urii);
  startActivity(Intent.createChooser(share,&quot;Share Sound File&quot;));
  </code></pre>