I have to create custom suggestions for a search widget in android. These suggestion are updated while user is entering text in search box. Suggestion are retrieved from network resource. Data returned from network resource is in json format. Problem is creation of content provider which retrieves data from network resource. Since accessing internet requires different thread. How would we define content provider's query method to retrieve data from internet.