Back to project page Chopping.
The source code is released under:
Apache License
If you think the Android project Chopping 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.chopping.application; /*from w w w . ja va 2s. c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.chopping.bus.ExternalAppChangedEvent; import de.greenrobot.event.EventBus; /** * Event that will be sent after an external App has been installed. * * @author Xinyue Zhao */ public final class InstalledAppReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { //Info UI to refresh button status. Uri data = intent.getData(); String packageName = data.getSchemeSpecificPart(); EventBus.getDefault().post(new ExternalAppChangedEvent(packageName)); } }