![]() The app uses the to fetch the latest exchange rates. ViewModel and LiveData: For managing the UI state and data in a lifecycle-aware manner. Gson: For parsing JSON responses from the API. Retrofit: For making network requests to the external API. The converted amount in Czech Koruna will be displayed in the second field. To convert a value, simply enter an amount in Euros and click the "Convert" button. The exchange rate is automatically fetched from the external API when the app is launched. ![]() When you open the app, you will see two fields: one for entering the amount in Euros and one for displaying the converted amount in Czech Koruna. If your API requires an API key, add it to the URL in the BASE_URL variable in the ExchangeRatesApi.kt file. Note: Some APIs require an API key to be passed in the URL. Select minimum SDK:API 15 Android 4.0. Application name: TextView StrikeThrough Ex. Open Android Studio and start a new Android Studio project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |