We will learn how to connect graphical elements from layout XML documents to our Java code. Those elements will then be programmed to store a piece of information for later retrieval by the app - even if it is restarted. We learn how to fire off button click events (OnClickListener), allowing us to store information in Android Shared Preferences
Get my FULL Android development course on Udemy. It takes you from beginner to published on Google Play for just $9! Use this link to purchase (normal price $199):
http://bit.ly/1m1Bnlu
Watch video 5/8 - How to write Java code inside MainActivity.java - Android App in 26 Minutes online without registration, duration hours minute second in high quality. This video was added by user iAmDev 13 December 2015, don't forget to share it with your friends and acquaintances, it has been viewed on our site 11,606 once and liked it 82 people.