HI John.
I am having the same issue ,., I am not getting any result back . I
made sure the code references my Entity.
This is my code
********Entity*******
@PersistenceCapable
public class PMFEntity {
@PrimaryKey
@Persistent
private String id;
@Persistent
@Latitude
private double latitude;
@Persistent
@Longitude
private double longitude;
@Persistent
@Geocells
private List<String> geocells;
double lat = 44.838611;
double lon = -0.578333;
PMFEntity obj = new PMFEntity();
obj.setId("22");
obj.setLatitude(lat);
obj.setLongitude(lon);
obj.setGeocells(cells);
PersistenceManager pm = PMF.get().getPersistenceManager();
pm.makePersistent(obj);
************Data gets stored *******************************
***************Access data does not work*************************
PersistenceManager pm = PMF.get().getPersistenceManager();
GeocellQuery baseQuery = new GeocellQuery();
List<PMFEntity> objects = null;
try {
objects = GeocellManager.proximitySearch(center, 40, 0,
PMFEntity.class, baseQuery, pm);
object is null .. any help will be appreciated
Thanks