Actually, that's what I did... or at least tried to do.

It seems that the problem is calling setContentView() with the
reference to the XML, R.layout.datiattrib.
For example if I try creating a TextView like this:

TextView textview = new TextView(this);
textview.setText("TextView1");

and then call setContentView(textview), it works fine.
So, like I said, it seems the problem is with the XML, but since it
seems to be correct (and quite plain), I was guessing maybe I messed
something up with the approach.
Or is this the common way to set up views in a Tab Layout?
Thanks again.

On 7 Apr, 06:10, TreKing <[email protected]> wrote:
> On Wed, Apr 6, 2011 at 10:34 AM, Amir <[email protected]> wrote:
> > When it comes to testing,though, the program shows an error and forces to
> > exit.
>
> Debug your program and find out what's causing it crash. Then fix it.
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to