I have very strange problem.
I am sending broadcast and setting some extras but receiver is not getting them :
Sending :
private void notifyAboutDownload(String reference, Context ctx) {
Intent i = new Intent(InitialActivity.ACTION_PACKAGE);
i.setAction(InitialActivity.ACTION_DOWNLOAD_COMPLEATED);
i.putExtra(InitialActivity.DOWNLOAD_ID, reference);
ctx.sendBroadcast(i);
}
And receiving :
public void onReceive(Context context, Intent intent) {
String downloadID = intent.getExtras().getString(InitialActivity.DOWNLOAD_ID);
Log.i(TAG, "downloadID : "+ downloadID);
}
};
For some reason downloadID is null. Any hints?
thanks