// Path: app/src/main/java/net/hyx/app/volumenotification/receiver/StartServiceReceiver.java
// public class StartServiceReceiver extends BroadcastReceiver {
// 
//     @Override
//     public void onReceive(Context context, Intent intent) {
//         if (intent.getAction() != null) {
//             //Toast.makeText(context, intent.getAction(), Toast.LENGTH_SHORT).show();
//             NotificationServiceController.newInstance(context.getApplicationContext()).startService();
//         }
// //        switch (intent.getAction()) {
// //            case Intent.ACTION_BOOT_COMPLETED:
// //            case Intent.ACTION_LOCKED_BOOT_COMPLETED:
// //            case ApplicationController.ACTION_APPLICATION_STARTED:
// //                //Toast.makeText(context, intent.getAction(), Toast.LENGTH_SHORT).show();
// //                NotificationServiceController.newInstance(context).startService();
// //                break;
// //        }
// 
//     }
// 
// 
// }


import android.app.Application;
import android.content.Intent;
import net.hyx.app.volumenotification.receiver.StartServiceReceiver;
package net.hyx.app.volumenotification.controller;




public class ApplicationController extends Application {

    public static final String ACTION_APPLICATION_STARTED = "net.hyx.app.volumenotification.broadcast.APPLICATION_STARTED";

    @Override
    public void onCreate() {
        super.onCreate();
        NotificationServiceController.newInstance(getApplicationContext()).checkEnableStartAtBoot();

// Path: app/src/main/java/net/hyx/app/volumenotification/receiver/StartServiceReceiver.java
// public class StartServiceReceiver extends BroadcastReceiver {
// 
//     @Override
//     public void onReceive(Context context, Intent intent) {
//         if (intent.getAction() != null) {
//             //Toast.makeText(context, intent.getAction(), Toast.LENGTH_SHORT).show();
//             NotificationServiceController.newInstance(context.getApplicationContext()).startService();
//         }
// //        switch (intent.getAction()) {
// //            case Intent.ACTION_BOOT_COMPLETED:
// //            case Intent.ACTION_LOCKED_BOOT_COMPLETED:
// //            case ApplicationController.ACTION_APPLICATION_STARTED:
// //                //Toast.makeText(context, intent.getAction(), Toast.LENGTH_SHORT).show();
// //                NotificationServiceController.newInstance(context).startService();
// //                break;
// //        }
// 
//     }
// 
// 
// }


// Path: app/src/main/java/net/hyx/app/volumenotification/controller/ApplicationController.java
import android.app.Application;
import android.content.Intent;
import net.hyx.app.volumenotification.receiver.StartServiceReceiver;

package net.hyx.app.volumenotification.controller;




public class ApplicationController extends Application {

    public static final String ACTION_APPLICATION_STARTED = "net.hyx.app.volumenotification.broadcast.APPLICATION_STARTED";

    @Override
    public void onCreate() {
        super.onCreate();
        NotificationServiceController.newInstance(getApplicationContext()).checkEnableStartAtBoot();

        Intent intent = new Intent(getApplicationContext(), StartServiceReceiver.class);