Project: titanium
Issue TIMOB-19328: Android: broadcast receiver always executed twice for one broadcast
It was working fine. Recently I found this bug, but not sure starting which SDK version the problem existed. Create a default Alloy project with the following: index.xml {code}	{code} index.js {code} function doClose() {	Ti.Android.unregisterBroadcastReceiver(bc); } $.index.open(); var onReceived = function(e) {	Ti.API.info("received!"); }; var bc = Ti.Android.createBroadcastReceiver({	onReceived : onReceived }); Ti.Android.registerBroadcastReceiver(bc, ["android.intent.action.PHONE_STATE"]); {code} tiapp.xml (use the following for the android section) {code}	{code} After launching the app, call to the cellphone and see the onReceived function executed twice for one broadcast.
Story points: 5