Read my thread on using androhard.