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

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

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-MemoryPlugin-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, MemoryPlugin.class));
    Logger.DEBUG(TAG, "Plugin broadcast received for " + MemoryPlugin.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.