Month: April 2016

Android See SQLite database content

Once 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

Posted in android Tagged with: ,

Android SQLite Example

Android 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

Posted in android Tagged with: ,

Android Dynamically Change Fragment

We 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

Posted in android Tagged with: ,

Android Adding Alternate Layout Resource Folder

Responsive 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

Posted in android Tagged with: ,

Android Fragment Communication onSaveInstanceState

In 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

Posted in android Tagged with:

Android Interface Class for Fragment Communication

Android 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

Posted in android Tagged with: ,

Android Inter Fragment Communication

In 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

Posted in android Tagged with: ,