Thanks for your reply.. solved the issue.. I put the flipper creation code inside the runOnUIThread() and its working fine..
Nithin On Apr 22, 10:25 pm, Streets Of Boston <[email protected]> wrote: > What thread is calling 'new ViewFlipper(ctContext)'? > Is it the main UI-thread? > If not, the calling thread must have a message-loop associated with it > (A looper-thread). > If it's not a looper-thread, you can't call 'new > ViewFlipper(ctContext)' this way. > > On Apr 22, 10:58 am, Nithin <[email protected]> wrote: > > > > > Hi, > > > When I tried to create a ViewFlipper inside a class which extends > > LinearLayout, its throwing an exception > > > "java.lang.RuntimeException: Can't create handler inside thread that > > has not called Looper.prepare()". > > > I am creating the ViewFlipper using, > > > ViewFlipper flipper = new ViewFlipper(ctContext); > > > But when I create the ViewFlipper in a class which extends Activity, > > its working normally. What may the reason ? > > > Nithin > > > -- > > 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 > > athttp://groups.google.com/group/android-developers?hl=en > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

