Fragment communication – Android


Passing data between two fragments in Android. Fragment communication is an essential topic in Android. In this post, we are going to learn how to establish communication between fragments. We are going to create an Android project. In this…

Read More »

Extract left and rightmost n characters of a string – Java


In this post, we are going to see how to extract left and rightmost ‘n’ characters from a string given by the user.  We are going to see how it’s done by a simple program in Java. In this program,…

Read More »

Convert date format – Android – Java

In this post, we are going to learn how to convert the date format in Android or Java. Suppose the date is 2017-11-30. We will convert it into 30 Nov 2017 or DD MMM YYYY. We are going…

Read More »

Double tap back button to exit app – Android


Double tap to exit – Android Programming It is always good to have this feature double-click to exit. Because sometimes when someone is in your main activity, they may touch the back button unintentionally. So by implementing this feature…

Read More »