Category Archives: Libraries

Android Things Preview 5 Released

Google has released the fifth developer preview of its Android Things platform for the Internet of Things Devices.




This version marks the first version of the platform to use Google’s Android O operating system’s code base to be released on August 21st. It includes new Application Programming Interface (API) features from Android O and new features for Android Things.  It is recommended that future applications target api 26 to work correctly with Android O.

With this version Intel Edison and Joule hardware will move to legacy support as they were discontinued by Intel.  These will continue to work with Developer Preivew 4.1 images.

Android Things  samples are now also included in the Android Studio developer tools.

More information Available at the Android Developer Blog

Web Sockets come to OkHttp v3.5

Today Jake Wharton posted an announcement on his medium blog that OkHttp version 3.5 released today includes support for Web Sockets.

Web Sockets  provide full-duplex communication channels over a single tcp connection and is being standardized by the W3C.  The can be used to implement client server web based applications.

With the update to the library you create a new web socket by passing a request tot he newWebSocket() method along with a listener for messages sent by the server.

Web Sockets now shipping in OkHttp 3.5! – Square Corner Blog – Medium

OkHttpClient client = new OkHttpClient();
Request request = //...
WebSocketListener listener = //...
WebSocket ws = client.newWebSocket(request, listener);

To use version 3.5 in your application add the library to your build.gradle file using the follinw line or via the Android Studio Dependencies tab in the Project Structure Dialog.

compile com.squareup.okhttp3:okhttp:3.5.0

SourceGithub