It sounds like you are trying to do something that requires UI, in a service, which has no UI. You'll need to launch your Application in order to do whatever it is you are trying to do.
Looper.prepare() is already called when you launch your main activity and you usually get this error when you try to do something that requires it, in a thread outside the loopers thread. You should also read up on how services and activities communicate. On Wednesday, 26 February 2014 06:52:11 UTC-5, Rashmi wrote: > > Hi, > > I am binding from service1 in app1 to service2 in app2 through aidl. In > service2 to I have defined the aidl stub api's which has some handler. > If I tried to access the service2 api through binder from service1, I am > getting the following exception > > "java.lang.RuntimeException: Can't create handler inside thread that has > not called Looper.prepare()" > > I am not creating any thread explicitly. Please let me know from where I > can call Looper.prepare(). > > Thank you, > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

