I tried this code. In this, once it gets the cellsite mode, it doesnot return to other modes.
I need few code to switch back to assist/autonomous mode and continously gets gps fix if available; otherwise switch to cellsite.
Code:
criteria.setMode(GPSInfo.GPS_MODE_ASSIST);
criteria.setSubsequentMode(GPSInfo.GPS_MODE_AUTONOMOUS);
criteria.setFailoverMode(GPSInfo.GPS_MODE_CELLSITE, 1, 120);