Showing posts from 2018

Github OAuth Client Library - Android

The Github_OAuth library helps to easily add a Github's OAuth implementation flow to your Android application.

It will open a new Dialog Fragment with webview and user token will be returned on callback.

Find more about GitHub's OAuth implementation

Let’s go through a sample application that authenticate using Github. complete source code of this library and sample application is available onGithub.
Setup Using Gradle The Github-OAuth library is pushed to jcenter, so you need to add the following dependency to your app's build.gradle.
As a module If you can't include it as gradle dependency, you can also download this GitHub repo and copy the library folder to your project. Usage Obtaining GithubAuthenticator instance Obtaining an access token via the GithubAuthenticator Authenticate will open a new Dialog Fragment with webview and user token will be returned on callback Enable logs Scope can also be defined (optional) Available scopes are from developer page

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…