Hi folks, ive a little problem: Why is the following code causing an exception? The Code throws a "mBaselineAlignedChildIndex of LinearLayout set to an index that is out of bounds" exception.
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LinearLayout l1 = new LinearLayout(this); LinearLayout l2 = new LinearLayout(this); l1.addView(l2); this.setContentView(l1); } If l2 is dont added to l1 than it works. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---