Click to Skip Ad
Closing in...
  1. Best Memory Foam Mattress
    12:31 Deals

    When 75,000 Amazon shoppers rave about a $130 memory foam mattress, you need to check it o…

  2. Philips Sonicare Deals On Amazon
    08:45 Deals

    These Philips Sonicare deals on Amazon will brighten any smile

  3. Apple Watch Series 6 Amazon
    14:59 Deals

    Apple Watch Series 6 is $100 off in this surprise Amazon sale

  4. Best TV Soundbar
    09:57 Deals

    Did someone make a mistake? There’s no way this soundbar should only cost $49.99

  5. Amazon Best Drone Deals
    11:50 Deals

    Amazon deal drops this top-rated foldable 1080p camera drone to just $49.99




How to give an Android phone 3D Touch by hacking its barometer

October 26th, 2015 at 2:51 PM
Android 3D Touch Barometer Hack

3D Touch is one of the iPhone 6s’s coolest new features and now Marco Chiappetta has shown that it’s possible to add this feature to at least some Android phones by hacking their barometers. In a video posted on his YouTube account, Chiappetta shows how he altered his Sony Xperia Z3 Compact to make its display sensitive to different degrees of pressure, much like the display of the iPhone 6s.

DON’T MISS: Surface Book: How Microsoft kept the ultimate laptop’s best feature a secret

“Just a quick-n-dirty proof of concept of how it is possible to use the device’s barometer to simulate Apple’s ‘force touch’ interaction,” he explains on his YouTube page. “There are two major problems: all the flaps (I have a Z3 compact) have to be sealed for the pressure to change when pressing the screen and since the flaps are not 100% sealed after a few seconds the pressure goes down even if you keep pressing on the screen (air goes out). Other than that it’s a pretty cool interaction.”

The trick here is that the smartphone has to be waterproof so that air will only escape the device very slowly when you press it. This slow escape of air means that internal pressure in the device will rise the harder you press down on it. So if you don’t have a waterproof Android device, this trick probably won’t work.

If you’re interested in trying this out yourself, you can use this code on Github that will get you access to the barometer on Apache Cordova Android and this source code to add 3D Touch-like capabilities to your device. We are not responsible for any averse side effects that occur after implementing this code — do this entirely at your own risk.

Check out the proof of concept for 3D Touch on Android below.




Popular News