Detect change in orientation using javascript

NOTE: orientationChange is deprecated Instead use screen.orientation using the screenOrientation interface which is triggered by the screenorientation.onchange event window.addEventListener(“DOMContentLoaded”, () => { const output = document.getElementById(“o9n”); const displayOrientation = () => { const screenOrientation = screen.orientation.type; output.innerHTML = `The orientation of the screen is: ${screenOrientation}`; if (screenOrientation === “landscape-primary”) { console.log(“That looks good.”); } else … Read more

Why is hierarchyviewer not working for Samsung Galaxy TAB 7.0?

I found a workaround: https://github.com/romainguy/ViewServer ViewServer is a simple class you can use in your Android application to use the HierarchyViewer inspection tool… Verify that you need this library(newer versions of Android don’t) If you do need this library then follow these directions: Include the ViewServer library(easy directions found here) Your application must require the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)