Showing posts from May, 2017

Picture-in-Picture: Working in Android Oreo

From release of the Android O, which saw some exciting new additions for us to get our hands on! One of the most noticeable user-facing changes is the introduction of a picture in picture (PIP) option – similar to an Apple iPad feature added in iOS 9 – which should make multitasking easier in some circumstances.  PIP is a special type of multi-window mode mostly used for video playback. PIP mode is already available for Android TV; Android O makes the feature available on other Android devices. Let’s take a look at this exciting new feature and how we can implement it into our Android applications! To learn more about Picture-in-Picture I created a playground project to have a play with the new features. You can check this out for yourself here! What is Picture-In-Picture?Picture-in-Picture (PiP) allows you to keep videos open as they play on top of of another screen. This wouldn’t be the same as the multi-window feature which allows users to keep two apps open simultaneously, but instead…

How to Use Kotlin in Your Android Projects

One great news of moving to Kotlin is, do not need to start from a new project. You could add it to your existing Java Android project. The language is interoperable with Java. So you could use steps below either for a new or existing project. Setting up Your EnvironmentBy default, Android Studio has no idea what to do with Kotlin, so the first step is to install the Kotlin plugin and configure Kotlin in your project. Installing the Kotlin PluginLaunch Android Studio and install the kotlin plugin. In Android Studio's quick start menu, select Configure >> Plugins. click on Install JetBrains plugin… Search for and select Kotlin from the list and click Install. When the installation completes, restart Android Studio to activate the plugins. Configuring Your Projec