Update mpg thread in MainActivity