[Android] Move the main activity to use Fragments.

Cleaned up the main activity as well.