String FEATURE_SERVER_AM = "http://220.231.126.125:6080/arcgis/rest/services/wsms_cnhd/WebAM/FeatureServer/0";
UserCredentials creds = new UserCredentials();
creds.setUserAccount(USER_NAME, PASSWORD);
ArcGISFeatureLayer secureFeatureLayer = new ArcGISFeatureLayer(
FEATURE_SERVER_AM,
MODE.ONDEMAND,
creds);
mMapView.addLayer(secureFeatureLayer);