I can't work out why I keep getting a nullpointerexception when I'm using an asyntask to fetch some search results from an api and populate an arrayadapter
public class AddVenueActivity extends Activity implements TextWatcher{
private AutoCompleteTextView venue_auto_complete;
private ArrayList<String> venues = new ArrayList<String>();
private ArrayAdapter<SearchResult&g
This is my first android app and I'm trying to build a wizard in which someone picks values from spinners to later be put into sqlite database tables.
I use this code to pick the views number from the XML:
public void nextButton(View view){
ArrayList<ContentValues> list = new ArrayList<ContentValues>();
ArrayList<Integer> dupes = new ArrayList<Int
I want to parse it through SAX Parser and the load the image through url and pass it to the next activity to show. But am failing to do so if any can help me out or give me some reusable code then it would be grateful. here is my xml file. Here is my parsed data class and adapter class don't to add items to arraylist.
I just started Android programming and I am not familiar with Widgets yet, I require your help and advice. Currently I have completed my Timetable Application that uses a custom Array Adapter to read data from an XML format file returned from the web service. I will then set the Listview's adapter to that of the custom ArrayAdapter.
Hi I am working with android application which is having custom listview. The items in listview around 3000. My problem is after loading items when scrolling it makes outOfMemory Error.
I am using Base Adapter and Each item having One Checkbox and four textviews.
Here is my code.
I am trying to get a button to work in a ListView Row. I been Reading about Custom Adapter but can't get it to work. Basically what i have a List_item class that have 4 TextView and 1 button which fieds a ListView in another class. one of the textViews has id/Name. so what i want is when i press the button on that row.
I have a screen where the user selects items he/she wants deleted, then I store his/her choices into an integer arrayList (based on which positions they clicked on the listView).
I then pass the items that they want deleted to a function where I actually delete them from my hashtable that holds all the information. For some reason though, it's just NOT deleting from the hashtable.
This is my activity class which parsing RSS
public class RSSReader extends Activity {
ArrayList<String> xmlImage=new ArrayList<String>();
ArrayList<String> xmlList=new ArrayList<String>();
ArrayList<String> xmlLink=new ArrayList<String>();
public class arkaPlanIsleri extends AsyncTask<Void, Void, Void> {
private ProgressDialog dialog = new
I have implemented action bar navigation tabs with view pager.