i think it would much better if u can put it into "Qǐngwèn nǐ zài zuò shénme? (請問你在做什麼)" which means "May I ask u what u are doing?" That sounds more polite to me. "Gànshénme (幹什麼)" sounds kind of rude. we use it only when talking to our friends and family.