toast no android
Toast.makeText(getActivity(), (String)data.result,
Toast.LENGTH_LONG).show();
toast no android
Toast.makeText(getActivity(), (String)data.result,
Toast.LENGTH_LONG).show();
toast not showing
// toast show with javascript
<script>
document.getElementById("liveToastBtn").onclick = function () {
var myToast = document.getElementById('liveToast');//select id of toast
var toastShow = new bootstrap.Toast(myToast);//inizialize it
toastShow.show();//show it
};
</script>
// toast with bootstrap exmaple on instance method
<script>
var toastElList = [].slice.call(document.querySelectorAll('.toast'))
var toastList = toastElList.map(function (toastEl) {
return new bootstrap.Toast(toastEl)
})
var myToastBtn = document.getElementById('liveToastBtn')//target toast btn
var toast = document.getElementById('liveToast')// target toast
var myToast = bootstrap.Toast.getInstance(toast) // Returns a Bootstrap toast instance
myToastBtn.addEventListener('click', function () {
myToast.show();
})// btn click function
</script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us