Playing music in the background on Android

If you haven't read the first part, read it first to learn the basics about Media playback on Android. Playing music in the background If you want your media to play in the background while the user is interacting with other applications, then you must start a Service and control…

Why I use Kotlin for Android

Kotlin is a statically typed language developed by JetBrains that targets the JVM. If you have worked with Java before, you know how verbose it could be. When Apple released Swift, developers rejoiced for a better alternative to Objective C. Kotlin could be that alternative for Android developers working with…

Realm for Android

Realm is a mobile database: a replacement for SQLite & Core Data that works for both iOS and Android. It has a really concise API and works extremely fast. Let's see how we define a model in Realm: public class User extends RealmObject { @PrimaryKey private int identifier; private String firstName;…

Eclispe shortcuts that you must know as a Java Programmer

I bet you can't program on Eclispe efficiently with out using its keyboard shortcuts. As a regular Eclipse user I say thousand of times Thanks to Eclispe to provide such a rich set of keyboard shortcuts while programming. Just in case, if you are looking for a particular shortcut, you…