 <p>Check this line in your onCreate() method:</p> <pre><code>loadAllProducts.execute(String.valueOf(lista)); </code></pre> <p>you can not get the string value of a ListView! If you want to get the value of a textView IN the listView, you could add an OnItemClick event to your listView and get the value of the textView in the selected list item like this:</p> <pre><code>//a variable, you could use from all the methods, that will have as a value the value of the selected TextView private String selectedValue; @Override protected void onListItemClick(ListView l, View v, int position, long id) { View view = (View)v.getParent(); TextView textYouNeed = (TextView) view.findViewById(R.id.textViewId); selectedValue = textYouNeed.getText(); } </code></pre> <p>and then use this variable in the line I told about above:</p> <pre><code>loadAllProducts.execute(selectedValue); </code></pre>