I\'d like to maintain a hash table in a broadcast receiver. If I understand BroadcastReceiver\'s life cycle currently it could get killed wiping out my member variables. Wh
downcast the data to Object class and then up-cast to required class object :-)
public void onReceive(Context context, Intent intent) { HashMap map = (HashMap) bundle.get("KEY"); Object[] data=map.get(mapKey); XXXX xxxx=data[0]; //... }