Без предоставления вашего кода очень трудно проверить, что может быть не так.
Следующая ссылка дает вам руководство по настройке просмотра списка http://developer.android.com/resources/tutorials/views/hello-listview.html,, однако оно реализует ListActivity.
Если вы реализуете только Activity, ваш код должен выглядеть следующим образом
package my.test;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class MyActivity extends Activity {
ListView lvList; // the listview
ArrayAdapter<String> adapter; // the adapter responsible for the rendering
ArrayList<String> listItems = new ArrayList<String>(); // the list of items
String myString = "Text to add"; // the text to add
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
lvList = (ListView) findViewById(R.id.mylistview);
adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, listItems);
lvList.setAdapter(adapter);
//add the text to the list of items
listItems.add(myString);
//tell the adapter that the list have change and the
//rendering should be refreshed
adapter.notifyDataSetChanged();
}
}
На самом деле приведенный мной пример относится к String, но вы можете сделать это для Integer или любого созданного вами класса.