Note that there are some explanatory texts on larger screens.

plurals
  1. POQuerying Parse.com and trying to display in Android ListView
    text
    copied!<p>Using Parse.com for the first time . Here's the problem,I am trying to query the Parse.com and then displaying it in android listview Log is getting printed properly but some issue in displaying it in listview</p> <p>Here's the code</p> <pre><code> ArrayList&lt;String&gt; mFuncDate = new ArrayList&lt;String&gt;(); private ListView lv; lv = (ListView) findViewById(R.id.myList); ParseQuery&lt;ParseObject&gt; query = ParseQuery.getQuery("GameScore"); query.findInBackground(new FindCallback&lt;ParseObject&gt;() { public void done(List&lt;ParseObject&gt; scoreList, ParseException e) { if (e == null) { //Log.d("score", "Retrieved " + scoreList.size() + " in list " + scoreList.get(0).getString("ClientName")); for(int i=0;i&lt;scoreList.size();i++) { Log.d("data","Retrieved Object is " + scoreList.get(i).getString("Date")); mFuncDate.add( scoreList.get(i).getString("Date")); } } else { Log.d("score", "Error: " + e.getMessage()); } } }); //String arr[]=mFuncDate.toArray(new String[mFuncDate.size()]); lv.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1 ,android.R.id.text1 ,mFuncDate)); </code></pre> <p>Where am I going wrong ? </p> <p>Updated: The problem is I can not see data getting updated in my listview, After trying so much time When I run this app when my screen is off I can see the listview getting updated but then normally I can not see anything in the listview ... I think it is something related to findInBackground so need help </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload