Like this article? We recommend
Adding Location Points
Now that we created the new walk, we use the following to add location points (defined by a latitude and a longitude):
getContentResolver().insert(mURI.buildUpon().appendPath("points").build(), values);
As you can see, we create a new URI based on the currently working base URI (for the walk with id 3). On top of that, we add the "point" path which would result in a URI similar to the following:
cdntent://com.informit.mywalks.Walks/walks/3/points
The insert function will return a new URI (not useful in our case as we sent the lat/long via the ContentValues values variable).