How to create Java Thread and Use it in android application.