It is strange that you did not mention you had code, and also possibly code that had an error. Your original question could have prompted someone to make a whole test app for you. If you have something already to show, please do so we can judge how to help you correctly.