Source:
<code>private void getTagline() { OpenFoodAPIService openFoodAPIService = new OpenFoodAPIClient(getActivity(), "<LINK_0>").getAPIService(); <START> Call<ArrayList<TaglineLanguageModel>> call = openFoodAPIService.getTagline(getString(R.string.app_name) + " " + Utils.getUserAgent("OTHERS")); <END> call.enqueue(new Callback<ArrayList<TaglineLanguageModel>>() { @Override public void onResponse(Call<ArrayList<TaglineLanguageModel>> call, Response<ArrayList<TaglineLanguageModel>> response) { if (response.isSuccessful()) { final Locale locale = LocaleHelper.getLocale(getContext()); String localAsString = locale.toString(); boolean isLanguageFound = false; boolean isExactLanguageFound = false; for (int i = 0; i < response.body().size(); i++) { final String languageCountry = response.body().get(i).getLanguage(); if (!isExactLanguageFound && (languageCountry.equals(localAsString) || languageCountry.contains(localAsString))) { isExactLanguageFound = languageCountry.equals(localAsString); taglineURL = response.body().get(i).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(i).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); isLanguageFound = true; } } if (!isLanguageFound) { taglineURL = response.body().get(response.body().size() - 1).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(response.body().size() - 1).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); } } } @Override public void onFailure(Call<ArrayList<TaglineLanguageModel>> call, Throwable t) { } }); }</code><technical_language>samething here. prefix added Utils.getUserAgent In method Utils.getUserAgent, BuildConfig.APPLICATION_ID prefix Official Android App</technical_language>

Target:
private void getTagline() { OpenFoodAPIService openFoodAPIService = new OpenFoodAPIClient(getActivity(), "<LINK_0>").getAPIService(); Call<ArrayList<TaglineLanguageModel>> call = openFoodAPIService.getTagline(Utils.getUserAgent()); call.enqueue(new Callback<ArrayList<TaglineLanguageModel>>() { @Override public void onResponse(Call<ArrayList<TaglineLanguageModel>> call, Response<ArrayList<TaglineLanguageModel>> response) { if (response.isSuccessful()) { final Locale locale = LocaleHelper.getLocale(getContext()); String localAsString = locale.toString(); boolean isLanguageFound = false; boolean isExactLanguageFound = false; for (int i = 0; i < response.body().size(); i++) { final String languageCountry = response.body().get(i).getLanguage(); if (!isExactLanguageFound && (languageCountry.equals(localAsString) || languageCountry.contains(localAsString))) { isExactLanguageFound = languageCountry.equals(localAsString); taglineURL = response.body().get(i).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(i).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); isLanguageFound = true; } } if (!isLanguageFound) { taglineURL = response.body().get(response.body().size() - 1).getTaglineModel().getUrl(); tvDailyFoodFact.setText(response.body().get(response.body().size() - 1).getTaglineModel().getMessage()); tvDailyFoodFact.setVisibility(View.VISIBLE); } } } @Override public void onFailure(Call<ArrayList<TaglineLanguageModel>> call, Throwable t) { } }); }