0

Is it possible to retrieve the contacts without using Activity class?

I'm using LWUIT for developing android application. I need to retrieve the contacts from android phonebook. How its possible?

Because normally retrieve contacts process achieved in inside of extend Activity class. ( I seen some examples).

In LWUIT, They created own Activity class. So i need to achieve some other class not in activity class.

How its possible?

bharath
  • 14,283
  • 16
  • 57
  • 95

1 Answers1

1

Contacts are available from the android.provider.Contacts (Android 1.6 and earlier) and android.provider.ContactsContract (Android 2.0 and newer) content providers. You do not need an activity to query those content providers using a ContentResolver.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491