Android TableLayout - No package identifier Issue
<p>i've a problem with my app.</p>

<p>I have a website where I have a ranking table.
I want get from this table all usernames, points and bonuses.</p>

<p>I use a Asynctask for send a HttpRequest through Jsoup to my website.</p>

<p>After i parse my html String, i save in 3 arrays all usernames, points and bonuses.</p>

<p>Ok, now i want to create a dynamic table and i use TableLayout in my main_activity.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/myTableLayout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;/TableLayout&gt;
</code></pre>

<p>This is the application code:</p>

<pre><code>package it.android.mypackage;
import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TableRow.LayoutParams;
import android.widget.TextView;

public class MainActivity extends Activity {

    TextView tv;
    TableLayout chartTable;
    String[] users;
    String[] points;
    String[] bonuses;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        chartTable = (TableLayout) findViewById(R.id.myTableLayout);

        String pathURL = "http://mywebsite.com/chart.aspx";

        DownloadWebPageTask task = new DownloadWebPageTask();
        task.execute(pathURL);

    }

    class DownloadWebPageTask extends AsyncTask&lt;String, Void, String&gt; {

        @Override
        protected String doInBackground(String... urls) {
            String response = "";
            String url = urls[0];
            Document doc = null;

            try {
                doc = Jsoup.connect(url).get();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            response = doc.toString();
            return response;
        }

        @Override
        protected void onPostExecute(String result) {
            Document doc = null;

            doc = Jsoup.parse(result);

            Elements listUsers = doc
                    .select("tr[style=border-bottom: 2px solid black;] td:eq(2)");
            Elements listPoints = doc
                    .select("tr[style=border-bottom: 2px solid black;] td:eq(3)");
            Elements listBonuses = doc
                    .select("tr[style=border-bottom: 2px solid black;] td:eq(4)");


                users = (listUsers.text()).split(" ");
                points = (listPoints.text()).split(" ");
                bonuses = (listBonuses.text()).split(" ");

            int i;
            for (i = 0; i &lt; 100; i++) {

                TableRow tr = new TableRow(MainActivity.this);
                tr.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

                TextView positiontv = new TextView(MainActivity.this);
                positiontv.setText(i+1);
                positiontv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

                TextView usernametv = new TextView(MainActivity.this);
                usernametv.setText(users[i]);
                usernametv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));


                TextView pointstv = new TextView(MainActivity.this);
                pointstv.setText(points[i]);
                pointstv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));


                TextView bonusestv = new TextView(MainActivity.this);
                bonusestv.setText(bonuses[i]);
                bonusestv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

                tr.addView(positiontv);
                tr.addView(usernametv);
                tr.addView(pointstv);
                tr.addView(bonusestv);

                chartTable.addView(tr, new TableLayout.LayoutParams(
                        LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
            }

        }
    }
}
</code></pre>

<p>When i debug my app i've an Exception and in the LogCat i can see:</p>

<pre><code>09-06 14:58:21.230: W/ResourceType(29801): No package identifier when getting value for resource number 0x00000001
</code></pre>

<p>I have this error on </p>

<pre><code>positiontv.setText(i+1);
</code></pre>

<p>and on three other TextView in setText() method.</p>

<pre><code>usernametv.setText(users[i]);
pointstv.setText(points[i]);
bonusestv.setText(bonuses[i]);
</code></pre>

<p>I don't understand where is the problem.</p>

<p>Some one help me?</p>
