can u tell me how to trace using logcat ? i m new to it . On Fri, Sep 2, 2011 at 4:25 AM, paddy <padam1...@gmail.com> wrote:
> I have 2 tabs with tagID "tag01" and "tag02". I have explicitly set > the focus to first tab by calling tabHost.setCurrentTab(0) > > When i call getLocalActivityManager().getActivity("tag01") i get the > object of activity but when i call > getLocalActivityManager().getActivity("tag02") then i get NULL. > > Now when i again run my app and this time click second tab and then > getLocalActivityManager().getActivity("tag02") gives object > (toString() in logcat). > So after checking it again and again i found that "only activity in > first tab( that i had set focus explicitly by > tabHost.setCurrentTab(0)) returns non-null" and other tabs return null > unless u don't click those tab. > When i click all tabs i.e atleast i go through all tabs by clicking > them then getLocalActivityManager().getActivity(anyTag) returns > object(i am tracing toString()) . How to access activity from other > tabs without clicking other tabs because user won't know that he/she > has to click tabs. > Please give some suggestions. Because i have to access activity in > tabs in my app. > I hope you understood my problem. > > (Note: i am tracing in LogCat) > > -- > 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