开发者

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

开发者 https://www.devze.com 2023-01-27 10:42 出处:网络
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?

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

精彩评论

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