Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It depends on those guy, when they can remove it depends on them. <a href="https://stackoverflow.com/questions/8111774/deprecated-meaning">Deprecated meaning?</a> is here. </p> <p><em>By reviewing the</em> <a href="http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html" rel="nofollow noreferrer">SimpleCursorAdapter</a> <em>doc, you will get two methods.. The one you are using</em> <a href="http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#SimpleCursorAdapter%28android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D,%20int%29" rel="nofollow noreferrer">SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to)</a> <em>and another is</em> <a href="http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#SimpleCursorAdapter%28android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D,%20int%29" rel="nofollow noreferrer">SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags)</a> <em>which added in API 11 after deprecation of previous.</em> </p> <p>The <a href="http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html" rel="nofollow noreferrer">docs</a> says </p> <blockquote> <p>This constructor was deprecated in API level 11. This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use LoaderManager with a CursorLoader.</p> </blockquote> <p>So You should modify your method as </p> <pre><code>if(android.os.Build.VERSION.SDK_INT &gt;= 11) { //Call another constructor } else { //the constructor which you are calling } </code></pre>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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