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);
Definately going to be used by advertisers in stores to target just one person with audible adverts as they walk around different sections.
Peanut Butter Jelly meme starts playing as you walk past the jif peanut butter..
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
https://www.neowin.net/forum/topic/1151734-android-array-list-issue/Share on other sites
10 answers to this question
Recommended Posts