Hello All, In my application, i am creating Tabs Programmatically and and i want to remove them as well one by one. I tried removeViewAt() and it works too.
But, after deleting my application gets crashed. e.g. If i have three tabs Tab1, Tab2 and Tab3 and if i remove Tab2, it gets removed but as soon as i click either of the tabs Tab1 or Tab2, ithe application gets crashed and on Log Cat i see this Error Message : AndroidRuntime(766): Uncaught handler: thread main exiting due to uncaught exception AndroidRuntime(766): java.lang.NullPointerException AndroidRuntime(766): at android.widget.TabWidget.onFocusChange (TabWidget.java:241) AndroidRuntime(766): at android.view.View.onFocusChanged(View.java: 2382) ... AndroidRuntime(766): at android.view.ViewGroup.removeViewInternal (ViewGroup.java:2016) AndroidRuntime(766): at android.view.ViewGroup.removeViewAt (ViewGroup.java:1970) can anyone please please Help me? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---