Hi!
Such code
package com.app.whatisylife;
import android.database.Cursor;
import android.net.Uri;
import android.provider.Contacts.People;
@SuppressWarnings("deprecation")
public class ContactClass
{
String[] projection = new String[] {
People._ID,
People._COUNT,
People.NAME,
People.NUMBER
};
Cursor contactCursor;
Uri contacts;
void getContactData()
{
contactCursor = managedQuery(contacts,
projection, // Which columns to return
null, // Which rows to return (all rows)
null, // Selection arguments (none)
// Put the results in ascending order by name
People.NAME + " ASC");
}
}
string "contactCursor = managedQuery" causes error "the metod managedQuery is undefined for the type ContactClass. What should I import in file? Or may be its a problem of class description? Help please!
Such code
package com.app.whatisylife;
import android.database.Cursor;
import android.net.Uri;
import android.provider.Contacts.People;
@SuppressWarnings("deprecation")
public class ContactClass
{
String[] projection = new String[] {
People._ID,
People._COUNT,
People.NAME,
People.NUMBER
};
Cursor contactCursor;
Uri contacts;
void getContactData()
{
contactCursor = managedQuery(contacts,
projection, // Which columns to return
null, // Which rows to return (all rows)
null, // Selection arguments (none)
// Put the results in ascending order by name
People.NAME + " ASC");
}
}
string "contactCursor = managedQuery" causes error "the metod managedQuery is undefined for the type ContactClass. What should I import in file? Or may be its a problem of class description? Help please!