@Override public int onStartCommand(Intent intent, int flags, int startId) { userJSON = FileUtil.readConfigFile(userConfigPath); pgyerJSON = FileUtil.readConfigFile(pgyerVersionPath); notificationJSON = FileUtil.readConfigFile(notificationPath); try { String currentUIVersion = URLs.currentUIVersion(mContext); kpiUrl = String.format( K.kKPIMobilePath, K.kBaseUrl, currentUIVersion, userJSON.getString(URLs.kGroupId), userJSON.getString(URLs.kRoleId)); analyseUrl = String.format( K.kAnalyseMobilePath, K.kBaseUrl, currentUIVersion, userJSON.getString(URLs.kRoleId)); appUrl = String.format( K.kAppMobilePath, K.kBaseUrl, currentUIVersion, userJSON.getString(URLs.kRoleId)); messageUrl = String.format( K.kMessageMobilePath, K.kBaseUrl, currentUIVersion, userJSON.getString(URLs.kRoleId), userJSON.getString(URLs.kGroupId), userJSON.getString("user_id")); thursdaySayUrl = String.format(K.kThursdaySayMobilePath, K.kBaseUrl, currentUIVersion); } catch (JSONException e) { e.printStackTrace(); } notifitionTask(); return super.onStartCommand(intent, flags, startId); }