Geofencing

I'm stuck. I'm trying to create geofencing offline. So I am trying get the location on PositionChanged (below) => but for geom I get null. Why?

Also, how would I create geom for a geodatabase? As I said its offline => code is also below. Geodatabase is working. I just want that if we enter this polygon, the user gets a warning message. Thanks for help in advance!