Android Open Source - MediaButtonOverlay Tasker Receiver






From Project

Back to project page MediaButtonOverlay.

License

The source code is released under:

GNU Lesser General Public License

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

package com.mikekorcha.mediabuttonoverlay.tasker;
/*  w  w w.j  a v a 2 s  . c o  m*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import com.mikekorcha.mediabuttonoverlay.OverlayService;

import net.dinglisch.tasker.bundle.BundleScrubber;
import net.dinglisch.tasker.bundle.PluginBundleManager;

public class TaskerReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(final Context context, final Intent intent){
        if (!com.twofortyfouram.locale.Intent.ACTION_FIRE_SETTING.equals(intent.getAction())) return;

        BundleScrubber.scrub(intent);

        Bundle bundle = intent.getBundleExtra(com.twofortyfouram.locale.Intent.EXTRA_BUNDLE);
        BundleScrubber.scrub(intent);

        if(PluginBundleManager.isBundleValid(bundle))
            context.startService(new Intent(context, OverlayService.class));
    }
}




Java Source Code List

com.mikekorcha.mediabuttonoverlay.MainActivity.java
com.mikekorcha.mediabuttonoverlay.MediaControlView.java
com.mikekorcha.mediabuttonoverlay.OverlayService.java
com.mikekorcha.mediabuttonoverlay.tasker.TaskerActivity.java
com.mikekorcha.mediabuttonoverlay.tasker.TaskerReceiver.java
com.mikekorcha.mediabuttonoverlay.util.Base64DecoderException.java
com.mikekorcha.mediabuttonoverlay.util.Base64.java
com.mikekorcha.mediabuttonoverlay.util.IabException.java
com.mikekorcha.mediabuttonoverlay.util.IabHelper.java
com.mikekorcha.mediabuttonoverlay.util.IabResult.java
com.mikekorcha.mediabuttonoverlay.util.Inventory.java
com.mikekorcha.mediabuttonoverlay.util.Purchase.java
com.mikekorcha.mediabuttonoverlay.util.Security.java
com.mikekorcha.mediabuttonoverlay.util.SkuDetails.java
com.robobunny.SeekBarPreference.java
net.dinglisch.tasker.Constants.java
net.dinglisch.tasker.PluginApplication.java
net.dinglisch.tasker.bundle.BundleScrubber.java
net.dinglisch.tasker.bundle.PluginBundleManager.java