I get this error \"Can\'t create handler inside thread that has not called Looper.prepare()\"
Can you tell me how to fix it?
public class PaymentAc
I assume you create a Handler in startPayment() method. You can't do that, as handlers can be created on th UI thread only. Just create it in your activity class.