Month: April 2016

Android See SQLite database content

Reading Time: 2 minutesOnce we have created our database in android SQLite, we would like to see SQLite database content. For that purpose, we need to start our application in the emulator (virtual device). Then we need tool Android Device Monitor Choose your

Tagged with: ,

Android SQLite Example

Reading Time: 5 minutesAndroid SQLite is Android database and it is very useful tool for local data storage. Later, stored data can be synchronized with other, larger database. When we deal with the databases, it is always useful to have additional class that

Tagged with: ,

Android Dynamically Change Fragment

Reading Time: 3 minutesWe have explained in previous tutorial how to add resource layout so that application is self-aware for smart device orientation change. Next step is to do the same thing but not with resource folder but dynamically. So android dynamically change

Tagged with: ,

Android Adding Alternate Layout Resource Folder

Reading Time: 3 minutesResponsive design in android programming should have answer on mobile device orientation change from horizontal to vertical (portrait to landscape) and vice versa. In that sense, it is useful to know android adding alternate layout resource folder. So let’s start

Tagged with: ,

Android Fragment Communication onSaveInstanceState

Reading Time: 2 minutesIn this tutorial we cover android fragment communication onSaveInstanceState. Point is to save counted number in the fragment and reuse it again when mobile device is rotated. Starting from previous example, add in “Upper” fragment onSaveInstanceState method. Now, add more

Tagged with:

Android Interface Class for Fragment Communication

Reading Time: 4 minutesAndroid Interface class is the best practice for fragment communication. If we want to make two fragments to communicate, we must put some effort to avoid coupling. If one fragment have reference to another, and call it directly, this situation

Tagged with: ,

Android Inter Fragment Communication

Reading Time: 3 minutesIn this tutorial android inter fragment communication is explained. Fragments in android are utilized to fully use screen area of the mobile device.  Our final target is to make an application that will have one fragment in the activity at

Tagged with: ,