How to generate Content Provider for Entity in GreenDao 3?

174 views Asked by At

In connection to this issue: How to generate a content provider with GreenDao3?

Can someone provide an example how to create a Content Provider for the annotated Entity in GreenDao3? For example my entity looks like this:

@Entity
public class Measurement {

@Id(autoincrement = false)
private Long id;

private Integer sensor_id;

@NotNull
private Long from_date;

@NotNull
private Long till_date;

@NotNull
private Double latitude;

@NotNull
private Double longitude;
}

I searched for code example from beginning to an end like this for a while, and it is really none of them out there.

0

There are 0 answers