hello people! i really hope someone here can help me out a bit with this android code... I can get a list array working no problems but its when i introduce the loop and text messages that it becomes an issue ... I can get the text messages to appear no problem but not in this array list... any help?
it says one of the causes is a null pointer exception or something... but I dont see any issue ;( i am probs just blind ?
import android.net.Uri; import android.os.Bundle; import android.app.Activity; import android.database.Cursor; import android.widget.ArrayAdapter; import android.widget.ListView; public class MainActivity extends Activity {
String[] sArray;
private ListView smsListView;
private ArrayAdapter arrayAdapter;
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
Question
Original Poster
hello people! i really hope someone here can help me out a bit with this android code... I can get a list array working no problems but its when i introduce the loop and text messages that it becomes an issue ... I can get the text messages to appear no problem but not in this array list... any help?
it says one of the causes is a null pointer exception or something... but I dont see any issue ;( i am probs just blind ?
Link to comment
Share on other sites
10 answers to this question
Recommended Posts