I've got a little problem with retrieving ID from added row. insertWithConflict inside my ContentProvider returns the ID of freshly added row but I don't know a way to get it from my ContentProvider to my IntentService responsible for firing insert.
CODE
Insert in IntentService
Uri uri = Uri.parse(MicroDatabaseProvider.CONTENT_URI + "/" + MicroDatabaseProvider.ORGANIZER_SEARCH_IN); getContentResolver().insert(uri, cv); Insert in ContetnProvider
long idLong = sqlDB.insertWithOnConflict(DbHelperMicro.ORGANIZER_SEARCH_TABLE, null, values, SQLiteDatabase.CONFLICT_IGNORE); getContext().getContentResolver().notifyChange(Uri.parse(CONTENT_URI + "/" + ORGANIZER_SEARCH_QUE), null);