Class - 1 -> Installation ,Activity Cycle and Views
Initial Setup Instructions
-
- Follow the instructions as mentioned. Do a fresh install if previously it did not work. Open Android Studio and run class-1 app given in repository to test.
- Gradle build should be successful !!
- Download required packages as Android Studio asks for them to download.
- Try resolving errors , use stackoverflow before reaching out to us.
-
Deploying your app on your phone - Preferred
Resources
-
Android LifeCycle - Best Resource
-
Understanding Android Studio - Visual explanation of android Studio
-
Try out buttons - Explore others too - TextView , EditText ,etc.
-
Java TPoint: Great online resource for learning Java concepts.
Code
Follow the app code present here.
Task
-
Design a basic activity with 2 Buttons and a TextView.
-
TextView Initially shows “Welcome to Android”
-
On 1st Button Click - TextView should change to “Learning Android” , with green color text.
-
On 2nd Button Click - TextView should change to “Android is fun” , with green border , text remains black.
-
-
Do attempt this task before the next class.Feel free to add more cool stuff as you explore.
We encourage you to run given code and feel free to experiment with it. In case of any doubt just ping any of the co-ordinators we are always here to help :)