background preloader

Mobile development

Facebook Twitter

Hammer.js - A javascript library for multi-touch gestures. iPhone Style Dragging for Both Desktop and Mobile with jQuery. When we create stuff for the web now it’s important we remember that the web has spread from the trackpad and mouse to the touch screen.

iPhone Style Dragging for Both Desktop and Mobile with jQuery

Sometimes this is hard to accomodate for, but it’s not that hard to create some awesome cross device friendly touch and drag events with HTML5 and some smart styling! Getting Started I’ve made a little plugin that lets you grab and drag your way through a bunch of pictures of album artwork, similar to you drag through objects on an iphone at the start screen. Check out the demo to get a feel for what we’re going to be creating. The plugin isn’t too difficult to understand and you can download the finished version above, but when I first designed it, it only worked with mouse drags. So first off we need to alter this so that it’s mobile compatible. Voila! This is the first position the user clicks. Adjusting the CSS Now the next problem is that the interface is still scaled for desktop screens. And now we have something that will work on most devices! SDK.

Before installing Android Studio or the standalone SDK tools, you must agree to the following terms and conditions.

SDK

This is the Android Software Development Kit License Agreement 1. Introduction 1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. 2. 2.1 In order to use the SDK, you must first agree to this License Agreement. 3. 3.1 Subject to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable, non-exclusive, and non-sublicensable license to use the SDK solely to develop applications for compatible implementations of Android. 3.2 You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK. 4.

Remote Debugging - Chrome Developer Tools. 11 Multi-touch and Touch events Javascript libraries. Touch screen devices are ruling the mobile platform nowadays.

11 Multi-touch and Touch events Javascript libraries

Most of the smart phones have it, tablet and based on the trend, it's slowly come to our desktop as well. To develop a touch screen compatible web applications or website, you can use the existing touch events of the browsers or the platforms. There are two ways to create a touch support app - native or using the web development technologies (HTML, CSS, Javascript). jGestures: a jQuery plugin for gesture events - Home. jQuery.event.swipe. Project Swipe events swipeleft, swiperight, swipeup, swipedown Fired when the finger is released from the touch surface (or mouse button) if the finger has a) just moved at least a threshold distance or b) moved quickly over a shorter distance.

jQuery.event.swipe

Also responds to mouse events. Swipe event objects are augmented with the properties: Detecting the ‘Tap’ event on a Mobile touch device using javascript. Currently we can use different types of events to control a touch gesture on a mobile device using javascript, but unfortunately they are not enough to detect all the huge amount of behaviours that an User could do with a touch gesture.

Detecting the ‘Tap’ event on a Mobile touch device using javascript

Some of the events that you can catch having everything under control are touchstart, touchmove, touchend and touchcancel. In one of my projects I needed to detect the ‘Tap’ event that is a bit different from the ‘touchstart’ event *, so I found this solution that works pretty well, and here you can get the code. Chrome for Android Comes with Advanced Developer Tools. Developers will love Chrome for Android since it comes with a full set of dev tools.

Chrome for Android Comes with Advanced Developer Tools

You can connect it to a remote debugger, which you can run on your desktop, and enjoy all of the tools that the desktop version provides. "In addition to support for the latest web technologies, we hope to make interactive web content super easy to develop," Google explained. "Chrome for Android introduces remote debugging through Chrome Developer Tools to make it simple for developers to debug web sites running live on their mobile devices," it wrote. You have to connect your phone via USB and enable "USB Web debugging" on it. You will then be able to use Chrome's full set of developer tools for the pages loading on your phone or tablet just as you would for a local page.