Android Question button with html code

ibra939

Active Member
Licensed User
Longtime User
i create button ande the code as following

WebView1.LoadHtml("<a href="url">link text</a> ")


but when i test the link not opening the link .mp3 directly will open?
 

ibra939

Active Member
Licensed User
Longtime User


No resource found that matches the given name: attr 'android:windowTranslucentNavigation'.
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
working but is playing not downloading i need button when i click will downloading ...... thanks NJDude
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi Ibra,

found on W3schools.com site an HTML5 attribute that may help you: download. Use it as follows

<a href="/images/myw3schoolsimage.jpg" download> or
<a href="/images/myw3schoolsimage.jpg" download="w3logo"> to have a local name different from the original one.

Probably you should combine it with the type attribute, specifying a type like:
<a type="application/octet-stream" href="clip.mp3">Download here</a>

Hope the above could be of any help.

Umberto
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User

THANKS udg for replay ........
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…