BReceiver.java :  » UnTagged » android-analyzer » org » androidanalyzer » plugins » camera » Android Open Source

Android Open Source » UnTagged » android analyzer 
android analyzer » org » androidanalyzer » plugins » camera » BReceiver.java
/**
 * 
 */
package org.androidanalyzer.plugins.camera;

import org.androidanalyzer.core.utils.Logger;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Broadcast Receiver to fire up the plugin registering it to the Core
 * 
 */
public class BReceiver extends BroadcastReceiver {

  private static final String TAG = "Analyzer-CameraPlugin-BReceiver";

  /*
   * (non-Javadoc)
   * @see
   * android.content.BroadcastReceiver#onReceive(android
   * .content.Context, android.content.Intent)
   */
  @Override
  public void onReceive(Context context, Intent intent) {
    context.startService(new Intent(context, CameraPlugin.class));
    Logger.DEBUG(TAG, "Plugin broadcast received for " + CameraPlugin.class);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.