title: Call requires api level 11. What to do when i get this error?
body: <p>I am using this code</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      TextView textview;
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
      String hallo = "blabla " + "jojo " + "lol " + "\n" + "doj " + "drasl " + "\n"; 
      InputStream is = new ByteArrayInputStream(hallo.getBytes());
      BufferedReader in = new BufferedReader(new InputStreamReader(is));
      LinearLayout linearLayout = (LinearLayout) findViewById(R.id.linearLayout);
  
      String line;
      try {
          while ((line = in.readLine()) != null) {
              String[] RowData = line.split(" ");
              String eitt = RowData[0];
              String tvo = RowData[1];
  
              TextView textView = new TextView(this);
              textView.setText(line);
              textView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT
             ,LayoutParams.WRAP_CONTENT));
              linearLayout.addView(textView);
          }
      } catch (IOException e1) {
          e1.printStackTrace();
      }
      }
  }
  </code></pre>
  
  <p>With this xml code</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/scrollView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" &gt;
  
          &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>I want to insert these parts of a string into a table layout, so that when my pieces of text are printed they come out in nice columns. The way this works, it just prints the string line for line instead of putting it into columns. It's also very important to know that I don't know how many lines are going to be in the string, so I can't just make 4 textview boxes because there could be 50 og a hundred lines, so I need to make an i amount of textview boxes in a table view with i being the number of lines. But i always get this error, call requires api level 11, and i am using api level 10. The error is coming because of this line             </p>
  
  <pre><code>textView.setLayoutParams(newLayoutParams(LayoutParams.FILL_PARENT
             ,LayoutParams.WRAP_CONTENT));
  </code></pre>
  
  <p>What kind of paramlayout options can i use to let this work.</p>