public class EndDownloadReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		   Bundle bundle = intent.getExtras();
		      if (bundle != null) {
		        String path = bundle.getString(DownloadService.FILEPATH);
		        int resultCode = bundle.getInt(DownloadService.RESULT);
		        if (resultCode == Activity.RESULT_OK) {
		          Toast.makeText(context, context.getResources().getString(R.string.messageToastDownloadFini,path), Toast.LENGTH_LONG).show();
		        }
		        else {
		          Toast.makeText(context, context.getResources().getString(R.string.messageToastEchecDownload),  Toast.LENGTH_LONG).show();
		        }
		      }
	}
}