Android Open Source - theUltimateFlashlight Flashlight Receiver






From Project

Back to project page theUltimateFlashlight.

License

The source code is released under:

GNU General Public License

If you think the Android project theUltimateFlashlight 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

/*******************************************************************************
 * Copyright (c) 2012 rob@theultimatelabs.com.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html/* w w w .  j  a v a 2 s .  com*/
 * 
 * Contributors:
 *     rob@theultimatelabs.com - initial API and implementation
 ******************************************************************************/
package com.theultimatelabs.flashlight;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.util.Log;

public class FlashlightReceiver extends BroadcastReceiver {

  public final static String TAG = "WatchReceiver";

  @Override
  public void onReceive(Context context, Intent intent) {
    Log.i(TAG,"Starting flashlight service");
    context.startService(new Intent(context, FlashlightService.class));  
  }

  

}




Java Source Code List

com.theultimatelabs.flashlight.AboutActivity.java
com.theultimatelabs.flashlight.FlashlightActivity.java
com.theultimatelabs.flashlight.FlashlightReceiver.java
com.theultimatelabs.flashlight.FlashlightService.java
com.theultimatelabs.flashlight.FlashlightSettings.java