Android Open Source - berlinclock-android-widget Time Actions Receiver






From Project

Back to project page berlinclock-android-widget.

License

The source code is released under:

MIT License

If you think the Android project berlinclock-android-widget 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 ch.crisi.berlinclock_widget;
//from  w  ww.j  av a2 s . co m
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class TimeActionsReceiver extends BroadcastReceiver {

    private Service service;

    public TimeActionsReceiver(Service service) {
        this.service = service;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        ((UpdateService) service).update();
    }
}




Java Source Code List

ch.crisi.berlinclock_widget.ApplicationTest.java
ch.crisi.berlinclock_widget.BerlinClockWidget.java
ch.crisi.berlinclock_widget.TimeActionsReceiver.java
ch.crisi.berlinclock_widget.UpdateService.java