Note that there are some explanatory texts on larger screens.

plurals
  1. POparse in android getInBackground function is not running
    primarykey
    data
    text
    <p>Can anyone help me out that why is the function <code>getInBackground</code> is not running i want to fetch the data from parse in android. This is my class which calls the function of <code>fetchData(String themeId)</code> in <code>parseManipulate</code> class</p> <pre><code>public class selectTheme extends Activity implements OnClickListener{ Button gBtn; Button rBtn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.themeselection); String themeid = "ECGo4oSKgU"; ParseManipulate pm = new ParseManipulate(); pm.fetchData(themeid); /* gBtn = (Button)findViewById(R.id.greentheme); rBtn = (Button)findViewById(R.id.redtheme); gBtn.setOnClickListener(this); rBtn.setOnClickListener(this); */ } </code></pre> <p>And this is my fetchData() function in ParseManipulate class.compiler does not run the function getInBackground() function and jumps at the end of function closing bracket</p> <pre><code>public class ParseManipulate { public void fetchData(String ThemeId) { ParseQuery&lt;ParseObject&gt; pq = ParseQuery.getQuery("testThemes"); pq.getInBackground(ThemeId, new GetCallback&lt;ParseObject&gt;(){ @Override public void done(ParseObject object, ParseException e) { // TODO Auto-generated method stub if(e == null) { // value = object.getString("ThemeName"); Log.d("ParseObject", ""+object.getString("ThemeName")); } else { // Toast.makeText(getApplicationContext(), "error in data fetching", Toast.LENGTH_SHORT).show(); } } }); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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