---
title: "Can Intent be used to provide data to a ContentProvider? Why or why not?"  
description: "Can Intent be used to provide data to a ContentProvider? Why or why not?"  
author: "Hemant Patel"  
published: 2018-01-10  
canonical: https://answers.mindstick.com/qa/32782/can-intent-be-used-to-provide-data-to-a-contentprovider-why-or-why-not  
category: "technology"  
tags: ["android"]  
reading_time: 1 minute  

---

# Can Intent be used to provide data to a ContentProvider? Why or why not?

Can [Intent](https://www.mindstick.com/forum/2382/how-to-set-textview-from-another-activity-using-intent-extra) be used to provide [data](https://yourviews.mindstick.com/view/84027/what-does-google-do-with-your-data) to a [ContentProvider](https://www.mindstick.com/interview/12753/what-is-an-intent-can-it-be-used-to-provide-data-to-a-contentprovider-why-or-why-not)? Why or why not?

## Answers

### Answer by Prateek sharma

**no** the data to content provider can be provided by the use of content resolver, not by an intent.

the reason is that intent can be used to provide data to other activity and a content provider can only accept data in the form of **content URI**. so you need to build a content URI which may be in the form -

content://com.example.app.provider/table


---

Original Source: https://answers.mindstick.com/qa/32782/can-intent-be-used-to-provide-data-to-a-contentprovider-why-or-why-not

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
