Tag Archives: Accelerometer

Samsung Galaxy Note 3 in India for Rs.49990

By | September 20, 2013

Here are Galaxy note 3 specs. General 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 850 / 900 / 1900 / 2100 4G Network LTE SIM Micro-SIM Announced 2013, September Status Coming soon. Exp. release 2013, September Body Dimensions 151.2 x 79.2 x 8.3 mm (5.95 x 3.12 x 0.33 in) Weight 168… Read More »

WaterProof, DustProof and scratch resistant Smartphones arriving in the market – Xperia Go and Xperia Acro S

By | June 2, 2012

Sony has introduced two new durable and waterproof handsets. For once, rugged doesn’t equate with bad design. The two Android-powered handsets are svelte and streamlined but feature extra protection like scratch-resistant displays and wet finger tracking. Sony announces Xperia S, Xeria P, Xperia U and Xperia Sola in India Sony Xperia U goes on sale online scratch-resistant displays… Read More »

How to use Accelerometer in Android?

By | May 30, 2012

This is a simple post showing how to use accelerometer in android. This java code prints the values of x,y and z axis in the console. [java] package com.coderzheaven.pack; import android.app.Activity; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; public class AccelerometerTest extends Activity implements SensorEventListener{ private SensorManager sensorManager; double ax,ay,az; // these are the acceleration… Read More »

Starting PhoneGap for ANDROID.

By | January 4, 2012

Hello everyone…. In today’s tutorial I will show how to start with a HelloWorld Application in PhoneGap for ANDROID. So what is PhoneGap PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. Follow these steps exactly to build the helloworld application. 1.If you… Read More »

How to detect shake in iPhone ? An example

By | April 13, 2011

Hi, Sometimes you may want to detect shake gesture in iPhone using your programs. But how can you detect shake gesture in iPhone? Shake gesture in iPhone can be detected by using the accelerometer. The following lines of code can be used for detecting the shake gesture in iPhone. You can use these lines of code in your… Read More »