Back to project page KitKatStepCounter.
The source code is released under:
Apache License
If you think the Android project KitKatStepCounter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.hodum.sensorreader; /* w w w .ja v a2 s . c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.hardware.Sensor; import android.hardware.SensorManager; /** * Created by fhodum on 11/12/13. */ public class RegisterListener extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { Intent i = new Intent(context, SensorService.class); context.startService(i); } }