You sand, prep, glue, cleanup then paint.
Glue wont stick if you paint first. The paint will peel off where you glue, and it will come apart.
Take your time. Clean everything up, glue it together, Fill/paint/cleanup and lightsly sand it EVERYWHERE (if you watn a metal texture you should use a really fine wet sand paper) then paint.