Android Development
How to detect phone shaking in Android. Sample
Here is sample application which demonstrate shake detecting. This sample application go into red when shake detected. Please look youtube video. package com.hrupin.sample.shakedetect; import android.app.Activity; import android.graphics.Color; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.view.View; import android.widget.RelativeLayout; import android.widget.TextView; import java.security.cert.CollectionCertStoreParameters; public class MainActivity extends Activity Read more…