The Journey of #100DaysOfCode (@im_Kushagra)

#Day41 of #100DaysOfCode :sparkles: :heart_hands:

:star2:Today I successfully build a Tip calculator android app called Tip Time. https://developer.android.com :zap:

Today I Learned:

  • View binding lets us more easily write code that interacts with the UI elements in our app
  • Use the checkedRadioButtonId attribute of a RadioGroup to find which RadioButton is selected.
  • Use NumberFormat.getCurrencyInstance() to get a formatter to use for formatting numbers as currency.
  • We can use string parameters like %s to create dynamic strings that can still be easily translated into other languages.
  • We can use Logcat in Android Studio to troubleshoot problems like the app crashing.
  • Exceptions indicate a problem that the code didn’t expect.
  • Not all code can handle null values, so be careful using it.

Shared on Twitter: https://bit.ly/363WAbP :heart:

4 Likes