Hi,
Since the point feature is too small hence the query does not fire properly on the layer. I had faced the same problem.
The solution? Since this sample works best for polygon layers, I decided to put the point i click in a polygon itself. So using geometric engine i create a small buffer(0.1) round the point. Now this buffer returns a polygon which is the same geometry type of the sample.
Now when you click your point you should see your attributes pop up in no time 😄 .
Note: Since the buffer distance is (0.1) for better accuracy, you might have to zoom a bit and then click the point to view your attributes.
Code:
pointClicked = mapControl.toMapPoint(x, y);
Polygon poly = (Polygon) GeometryEngine.buffer(pointClicked, mapControl.getSpatialReference(),0.1,mapControl.getSpatialReference().getUnit());
Regards,
Nigel.