Android Open Source - android-wear-go-walk Boot Completed Intent Receiver






From Project

Back to project page android-wear-go-walk.

License

The source code is released under:

MIT License

If you think the Android project android-wear-go-walk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.beltranfebrer.gowalk2;
//w  w w.  j  av  a 2s.  c o m
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootCompletedIntentReceiver extends BroadcastReceiver {
    public BootCompletedIntentReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
            Intent pushIntent = new Intent(context, WearService.class);
            context.startService(pushIntent);
        }
    }
}




Java Source Code List

com.beltranfebrer.gowalk2.ApplicationTest.java
com.beltranfebrer.gowalk2.BootCompletedIntentReceiver.java
com.beltranfebrer.gowalk2.MainActivity.java
com.beltranfebrer.gowalk2.StepChecker.java
com.beltranfebrer.gowalk2.WearActivity.java
com.beltranfebrer.gowalk2.WearService.java