Posts

Showing posts with the label Android

Enable WebGL on Chrome

Image
First, enable hardware acceleration: Go to  chrome://settings Click the  + Show advanced settings  button In the  System  section, ensure the  Use hardware acceleration when available  checkbox is checked (you'll need to relaunch Chrome for any changes to take effect) Then enable WebGL: Go to  chrome://flags Enable Override software rendering list   ,  WebGL Draft Extensions and  WebGL 2.0 Prototype   Ensure that  Disable WebGL  is not activated (you'll need to relaunch Chrome for any changes to take effect) Then inspect the status of WebGL: Go to  chrome://gpu Inspect the  WebGL  item in the  Graphics Feature Status  list. The status will be one of the following: Hardware accelerated  — WebGL is enabled and hardware-accelerated (running on the graphics card). Software only, hardware acceleration unavailable  — WebGL is enabled, but running in software. See...

Facebook Infer - Detect bugs before you ship

Image
What is Infer? An Opensource tool to detect bugs in Android and iOS apps before they ship -  http://fbinfer.com/ Documentation (Getting Started Guide) -  http://fbinfer.com/docs/getting-started.html Quotes from "Peter O’Hearn" - engineering manager at Facebook When you have to write a software test, often you are going after a specific bug. That means you’ll need to exercise all of the funny cases that will get you to that bug. Static analysis allows you to execute the code symbolically It’s important to know that while things like Infer have made us faster and more successful, they’re not pieces of the Facebook competitive differentiator another huge benefit of open source is in recruiting. By showing you can open source stuff if you built it at Facebook, then you get excellent, independent engineers who don’t require as much ramp up time, since they’re used to working on these open source projects. So there’s far less training. Source: https://c...

Key Events in Android Device Automation

Image
If you are looking to automate your android device there are instances when the automation tool/scripts need to run the adb shell commands to achieve the actions: If you are using seeTest one of them is: client.run("adb shell input keyevent 26"); For more commands look at: http://developer.android.com/reference/android/view/KeyEvent.html Happy Android automation!

How do I get my Nexus 7 to show up in the adb devices list ?

Image
Problem: Nexus 7 that I'm trying to connect to Windows computer for automation over adb No device driver for nexus 7 ? What did not work: I did click on the build number 7 times to get the developer options enabled Tried connecting both as a Media device (MTP) and as a Camera (PTP). ("Connected as a media device" up at the top left corner, de-selecting Media Device (MTP) and then checking Camera (PTP).) downloaded this usb driver: http://dlcdnet.asus.com/pub/ASUS/EeePAD/nexus7/usb_driver_r06_windows.zip Go to the device manager , right click the nexus device and choose properties, choose "hardware" and then choose update your driver , choose manualy and pick the folder you opend the zip file to and press apply. What worked for me: The universal adb driver installer worked for me. Download the universal driver exe Run with the device connected and it will give you an option to install.  http://adbdriver.com/ Install that and you will...

Funny way to enable developer options on android

Image
Problem :  Toggle on the "USB Debugging" in the "Developer Options" area of Settings in an android device This is a prerequisite to perform automation. Solution: If you do not see "Developer Options" Go into "About device" in Settings  Tap on the "Build number" entry seven times, which will unlock "Developer Options". So it's that simple tapping  the build number will make you a developer :P