Back to project page hts-cycle.
The source code is released under:
GNU General Public License
If you think the Android project hts-cycle 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 it.uniroma2.musicsharep2p; //from w w w. j a v a 2 s . com import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class MusicShutReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub RemoteServiceConnection rem = RemoteServiceConnection.getInstance(context); if(!rem.isdownloading()){ Bundle results = getResultExtras(true); //do something if needed }else{ abortBroadcast(); } } }