コード例 #1
0
ファイル: SwitchLog.java プロジェクト: gcb/android-CPU-tuner
 public static void start(Context ctx) {
   if (instance == null) {
     instance = new SwitchLog(ctx);
   }
   instance.onReceive(ctx, getLogIntent(ctx.getString(R.string.log_msg_switchlog_start), false));
   ctx.registerReceiver(instance, new IntentFilter(Notifier.BROADCAST_PROFILE_CHANGED));
   ctx.registerReceiver(instance, new IntentFilter(ACTION_ADD_TO_LOG));
   ctx.registerReceiver(instance, new IntentFilter(ACTION_FLUSH_LOG));
 }