UPS for embedded system

Hello.

I need to make a little system and power it with 3 cells NI-MH (1.2V).

My problem is that i need a schematic for charging the cell without disconnecting power from the system (something like a cell phone).

Does anyone have something similar?

Thanks

Jaime