How to determine if the client is a touch device [duplicate]

You can use the following JS function: function isTouchDevice() { var el = document.createElement(‘div’); el.setAttribute(‘ongesturestart’, ‘return;’); // or try “ontouchstart” return typeof el.ongesturestart === “function”; } Source: Detecting touch-based browsing. Please note the above code only tests if the browser has support for touch, not the device. Related links: How to detect a mobile device … Read more

How do I intercept messages from a USB device on Linux?

Actually you missed a buzzword “USB sniffing“. 😉 Here are a few tutorials on USB sniffing on Linux, to get you started. Official Wireshark wiki for USB monitoring biot.com/blog/usb-sniffing-on-linux (InternetArchive) tjworld.net/wiki/Linux/Ubuntu/USBmonitoring Essentially you use the usbmon Linux kernel module to capture the USB-packets and Wireshark as a front-end to display and analyse the captured USB … Read more

Detect virtual keyboard vs. hardware keyboard

I think the best approach would be to combine HTML5 form attributes with an optional virtual keyboard link. HTML5 form attributes can be used to trigger different types of keyboards. For example, <input type=”email”>, <input type=”number”> and <input type=”tel”> will trigger the appropriate keyboard types on iOS (not sure about Android/WinPho/other, but I would imagine … Read more

Make android app not availble for tablets

http://developer.android.com/guide/practices/screens-distribution.html#FilteringHansetApps …you can use the element to manage the distribution of your application based on combinations of screen size and density. External services such as Google Play use this information to apply filtering to your application, so that only devices that have a screen configuration with which you declare compatibility can download your application. The … Read more

Why my App is not showing up on tablets in Google Play?

At last adding a special case for Nexus 7 with in <compatible-screens> tag worked for me. As Nexus 7 has tvdpi density <compatible-screens> <!–no small size screens –> <!–all normal size screens –> <screen android:screenSize=”normal” android:screenDensity=”ldpi” /> <screen android:screenSize=”normal” android:screenDensity=”mdpi” /> <screen android:screenSize=”normal” android:screenDensity=”hdpi” /> <screen android:screenSize=”normal” android:screenDensity=”xhdpi” /> <!– all large size screens –> … Read more