Android Open Source - VoLTE_Dialer Boot Up Receiver






From Project

Back to project page VoLTE_Dialer.

License

The source code is released under:

GNU General Public License

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

/**
 *  Part of the dialer for testing VoLTE network side KPIs.
 *  //from   w  w  w .  j  ava  2 s  .c  o  m
 *   Copyright (C) 2014  Spinlogic
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as 
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

package at.a1.volte_dialer;

//import net.spinlogic.logger.Logger;
import java.util.logging.Level;
import java.util.logging.Logger;

import net.spinlogic.logger.SP_Logger;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import at.a1.volte_dialer.callmonitor.CallMonitorService;

public class BootUpReceiver extends BroadcastReceiver{
  private static final String TAG = "BootUpReceiver";
  private final static Logger LOGGER = Logger.getLogger(SP_Logger.LOGGER_NAME);

  
  @Override
  public void onReceive(Context context, Intent intent) {
    final String METHOD = "::onReceive()  ";
    
    LOGGER.setLevel(Level.INFO);
//    Logger.Log(TAG + METHOD, "Checking if service should run in background.");
    LOGGER.info(TAG + METHOD + "Checking if service should run in background.");
    if(Globals.opmode == Globals.OPMODE_BG) {  // Activate logging service
//      Logger.Log(TAG + METHOD, "Launching CallMonitorService on Boot.");
      LOGGER.info(TAG + METHOD + "Launching CallMonitorService on Boot.");
      Intent cms = new Intent(context, CallMonitorService.class);
      cms.putExtra(CallMonitorService.EXTRA_OPMODE, CallMonitorService.OPMODE_BG);
        context.startService(cms);
    }
  }

}




Java Source Code List

at.a1.volte_dialer.BootUpReceiver.java
at.a1.volte_dialer.Globals.java
at.a1.volte_dialer.SettingsActivity.java
at.a1.volte_dialer.SettingsFragment.java
at.a1.volte_dialer.VDMainActivity.java
at.a1.volte_dialer.VD_Settings.java
at.a1.volte_dialer.callmonitor.CallDescription.java
at.a1.volte_dialer.callmonitor.CallLogger.java
at.a1.volte_dialer.callmonitor.CallMonitorInterface.java
at.a1.volte_dialer.callmonitor.CallMonitorReceiver.java
at.a1.volte_dialer.callmonitor.CallMonitorService.java
at.a1.volte_dialer.callmonitor.OutgoingCallReceiver.java
at.a1.volte_dialer.callmonitor.PreciseCallStateReceiver.java
at.a1.volte_dialer.dialer.DialerReceiver.java
at.a1.volte_dialer.dialer.DialerService.java
at.a1.volte_dialer.dialer.DsHandlerInterface.java
at.a1.volte_dialer.receiver.ReceiverService.java
at.a1.volte_dialer.volte_dialer.java
net.spinlogic.logger.Logger_backup.java
net.spinlogic.logger.SP_Logger.java