When you use an App on your Android Device I am sure you press the back button pretty often. Which in turn takes you to the previous Screen.
This happens because of the Back Stack which maintains a history of places you have visited.
Each visit is a transaction. So the back stack essentially keeps an eye on all the transactions. Using the back stack effectively can lead to to a good user experience.
A transaction can be moving from one Activity to another or from one Fragment to another. So if the user wants to go back to the previous Activity or Fragment
the Back Button will enable that action.
How this concept applies to our App we will discover in the next Article.
Read the Android Documentation to explore this further.
The growing popularity of Android platform inspires many to take up Android App Development. But few persist to become good at developing quality Apps.
Ivan is someone who has been able to do just that. In his blog he shares how each of his App was instrumental to make him better.
For instance he writes that the one App that inspired him was a two-hour project.
Originally developed to make me a millionaire, once 1,428,571 users purchased the app as Google takes 30 cents out of every dollar, The Dollar App was made to test my merchants account.
Little did I know that years later I will receive an email from a happy mom stating that it was the best dollar that she ever spent since her boy was smiling every time my app gave him a hug.
Like wise every App he created has a Story to tell. His tips and advice is quite valuable to anyone who is considering App Development.
You can read the rest of the Article here.
Image Courtesy – Toptal
Now that you have two Fragments – a ListFragment and a Detail Fragment, its time for you to call the Detail Fragment from ListFragment.
Let’s understand the Fragment Communication concepts.
Continue reading “Learn how Fragments communicate with each other via Activity”
MIT Technology Review just published 10 technologies which can solve some of the most challenging problems.
From Robots and Rockets to DNA App Store and more. These innovations can not just solve major problems but also create opportunities.
You can read about this exciting stuff here.
Continuing from the last Article where you created a ListFragment, you are going to create a blank Fragment now.
The purpose of this Fragment will be to display the Employee Details, when a user will click on an Employee.
The Fragment will appear next to the ListFragment for now. So go ahead, watch the video and try it out.
Source Code : https://github.com/ankur-srivastava/EmployeeApp/tree/master/app/src/main
In Part 1 you created a new App from Scratch. Now its time to create two things
- ListFragment : To display List of Data.
- Employee Class : Which will provide us the data to be displayed.
Follow along the video to do this.
Source Code for the changes are available here