title: Loader function showing error while returning Uri value
body: <p>Loader function</p>
  
  <pre><code>@Override
  public android.support.v4.content.Loader&lt;Uri&gt; onCreateLoader(int id, Bundle args) {
  
      DbLoader abc=new DbLoader(this,uri,values);
  
      return abc;
  }
  </code></pre>
  
  <p>DbLoader function</p>
  
  <pre><code>public class DbLoader extends AsyncTaskLoader&lt;Uri&gt; {
  Context context;
  Uri uri;
  ContentValues values;
  public DbLoader(Context context, Uri uri, ContentValues values) {
      super(context);
      this.context=context;
      this.uri=uri;
      this.values=values;
  }
  
  @Override
  public Uri loadInBackground() {
      Log.e("TAG","thread running");
    Uri  uriTemp=context.getContentResolver().insert(uri,values);
      return uriTemp;
  }
  }
  </code></pre>
  
  <p>I am getting error that I am returning data of wrong return type.
  I did the same with String while working with loading data from internet and it worked at that time.
  What can I do to remove this error?</p>
  
  <p>Exact error message is</p>
  
  <pre><code>Incompatible types.
  Required:
  android.support.v4.content.Loader
  &lt;android.net.Uri&gt;
  Found:
  com.example.asus.test_table.DbLoader
  </code></pre>