I have a user click event for a button on a web page.
$('.hr_rd_s').click(function() {
window.open('gift.php', '_blank');
//automatically install Android app code goes here
});
<a href="#" class="hr_rd_s">
<span id="text15" class="answer">Left</span>
</a>
For example, if user is on Android phone, I want the app to be automatically installed on user click event. This page would be only rendered to Android phone users.