Automatic android screenshot and solve. Very messy code.