You have to give an ID to the LinearLayout inside the ScrollView, so in the code you will:
LinearLayout l = (LinearLayout) findViewById(R.id.yourID);
and then simply:
l.addView(yourView);
Remember that ScrollView can have only one child, so if you need another Layout you have to set up a parent Layout to contain the old and the new one.
Hope it helps.