Back to project page MediaButtonOverlay.
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.
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)); } }