开发者

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

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 Activit开发者_StackOverflow中文版y 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜