Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (name.equalsIgnoreCase("submaterial"))
- {
- jobURI = new Uri.Builder();
- jobURI.authority(JobMetaData.AUTHORITY);
- jobURI.scheme("content");
- jobURI.appendPath(jobName);
- jobURI.appendPath("submaterial");
- //GUID is the only valid way to uniquely identify material
- jobURI.appendPath(material.getAsString("GUID"));
- if (!existed)
- {
- activityContext.getContentResolver().insert(jobURI.build(), material );
- }
- else
- {
- activityContext.getContentResolver().update(jobURI.build(), material,
- "GUID="+material.getAsString("GUID") , null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement