Class LocationCtrl


  • public class LocationCtrl
    extends java.lang.Object
    • Constructor Detail

      • LocationCtrl

        public LocationCtrl​(android.content.Context context)
    • Method Detail

      • setLocationMode

        public android.os.Bundle setLocationMode​(int mode)
        Set Location Mode
        Parameters:
        mode - (int) 0:"off", 1:"device only", 2:"battery saving", 3:"high accuracy",
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");