My First Android App

I always wanted to apply what I'm learning and build a product. My journey with web development is pretty good but as I'm learning and coding in java lately, understanding the android app development seems quite easy. Hence I tried to build a basic unit convertor app (kgs to pound). 

I kinda learnt a lot with just this basic app. 

A detailed description of my first android app:
declaration of objects for Button, TextView and EditText classes
1. accessing the button present in the XML via the id value
2. accessing the text view (enter kg value) present in the XML via the id value
3. accessing the edit text present in the XML via the id value
5. when button is clicked, a toast displays: adding an setOnClickListener() to a button
6. inside the arg of setOnClickListener(), make sure you add the "new View.OnclickListener()" function!!
7. accessing the text inside the editText using getText() and converting it into string using toString()
8. Now converting the string value into an Integer value using the Integer.parseInt()
9. calculating and storing the pound value inside a double type variable
10. setting the textView to display the value of the pound variable


This is how it looks when you download the .apk file 



Popular posts from this blog

The third parameter - Event bubbling and Event capturing

Binary Sreach Algorithm : Optimized way to get the index of the mid element

Abstract classes