Run Time Error.......

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Run Time Error.......

Postby Abhishek » Sat Jun 27, 2009 9:28 am

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TableLayout tl=(TableLayout)findViewById(R.id.TableLayout01);
TableRow tr=new TableRow(this);

for(int i=0;i<3;i++)
{
tv[i]=new TextView(this);
tv[i].setText("abhi");
tr.addView(tv[i]);

}


tl.addView(tr);

}


Need help..........................As when running the above code....getting run time error...
Abhishek
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Jun 23, 2009 10:07 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests