Click here to Skip to main content
16,020,377 members

Comments by mathiazhagan01 (Top 11 by date)

mathiazhagan01 1-Aug-14 9:53am View    
Are you doing it in receiver or activity?
mathiazhagan01 1-Jul-14 2:23am View    
Deleted
I am using a ArrayList to add the values to be displayed in listview.
<pre>
List<string> values = new ArrayList<string>();
ListView listView1 = (ListView) findViewById(R.id.listView1);
String listValue = null;
ArrayAdapter<string> adapter;
</pre>
Adding values using add(), I will have a string in listValue
<pre>
values.add(listValue);
</pre>
Setting the adapter
<pre>
adapter = new ArrayAdapter<string>(getBaseContext(),android.R.layout.simple_list_item_1, android.R.id.text1, values);

listView1.setAdapter(adapter);
</pre>
When I need to change the data in the listView1, I just clear the values using clear()
<pre>
values.clear();
</pre>
Then, again set the adapter
<pre>
adapter = new ArrayAdapter<string>(getBaseContext(),android.R.layout.simple_list_item_1, android.R.id.text1, values);

listView1.setAdapter(adapter);
</pre>

Hope this help you. But I think this is not a way to do. We should know how to use the notifyDataSetChanged().
mathiazhagan01 27-Jun-14 4:30am View    
Mr.ridoy, that is for v2, I want a easy example project for v4.

https://developers.google.com/analytics/devguides/collection/android/v4/
mathiazhagan01 26-Jun-14 6:02am View    
Please share your code of popup imageview.
mathiazhagan01 25-Jun-14 8:44am View    
The above blog is helpful. But, there are some changes in API. And there is no explanation about importing GCM or Google Play Services.

Me too waiting for a clear step by step guidance.