What is the recommended video format codec and container to play on android devices I am about to encode some of my videos so that they can be played on android devices?

what is the most compatible container, codec and dimension for android devices. thanks!
The Android Developer Guide covers this pretty thoroughly.  They have all the supported formats as well as recommendations.  I would additionally recommend using the same resolution as your screen if your device can handle it, that will much improve the quality.