I have yet to hear of an example where someone was able to successfully put activities inside a TabActivity. Why it is allowed I'm not sure... The most success comes from having a single activity and having each tab be a different View...
On Sat, Feb 19, 2011 at 8:51 AM, Kwok Chun Wing, Edwin <edwin...@gmail.com>wrote: > Should I put the onActivityResult in TabActivity instead of A activity? I > really need them in the activity but I just want to put the acitivity inside > a tab, so that I got problem. > > > On Saturday, February 19, 2011 07:54 PM, Zsolt Vasvari wrote: > >> There are quite a few things wrong with Activities inside a >> TabActivity. Avoid them at all cost, if you can. You should be able >> to refactor your code to the point where they are not needed. >> >> On Feb 19, 6:43 pm, Edwin<edwin...@gmail.com> wrote: >> >>> Hi All, >>> >>> I have an activity named A which has TTS and service functions. It >>> works well if it is a single activity, but TTS and service are not >>> working if I put A into a TabActivity. I am not sure which part of the >>> program has problem. Maybe TabActivity have some effect for the >>> onActivityResult in A, thus TTS function not work. >>> >>> Does anybody have idea to solve it? >>> >>> Thanks >>> >> > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en