Showing results for kotlin - Surface Duo Blog

Dec 31, 2023
0
0

2023 year in review

Craig Dunn
Craig Dunn

Hello Android developers, 2023 was the year that machine learning and artificial intelligence really became mainstream, and we covered both topics with a focus on Android implementations. We published series on using the ONNX machine learning runtime, building Android apps with Microsoft Graph, and tutorials for Jetpack Compose ...

kotlinJetpack Composeopenai
Apr 27, 2023
0
1

Jetchat with OpenAI on Android

Craig Dunn Kristen Halper Parker Schroeder
Craig,
Kristen,
Parker

Hello prompt engineers, The last three blogs have been about exploring the OpenAI API completion, edit, and image endpoints from Android, using HttpClient and crafting JSON requests and responses. This post is about implementing the chat API in an Android app, using the open-source client library openai-kotlin on GitHub. The library ...

kotlinJetpack Composeopenai
Mar 9, 2023
1
0

Introduction to Microsoft Graph for Android

Kristen Halper Parker Schroeder
Kristen,
Parker

Hello Android developers, Today we’ll be continuing our blog series on using the Microsoft Authentication Library (MSAL) and the Microsoft Graph to connect to M365 services in your own Android apps. Last week, we covered the basics of MSAL, so be sure to check that out first! This week, we’ll focus on the Microsoft ...

kotlinmsalgraph
Mar 2, 2023
0
4

Authentication in Android apps with MSAL

Parker Schroeder
Parker Schroeder

Hello Android developers, Connecting users to their data is an important factor in the mobile space as it helps to create a personalized experience across multiple devices. As is common across the technology space, users need to provide credentials in order to access their data, often in the form of a username and password, two factor ...

kotlinmsalauthentication
Feb 24, 2023
1
0

Built-in model pre-processing with ONNX

Craig Dunn
Craig Dunn

Hello Android developers, Previously we looked at how to pre-process image inputs for an ONNX model using Kotlin. It’s useful to understand this process because the principles apply to any model that you wish to use. On the other hand, having to write boilerplate code for input processing can be tedious – it also means there’s more...

kotlinmachine learningonnx
Feb 16, 2023
0
1

Bringing ONNX models to Android

Craig Dunn
Craig Dunn

Hello Android developers, One of the advantages of the ONNX runtime is the ability to run locally on a variety of devices, including mobile devices. This means that your users get fast response times, but also comes with the need to respect mobile device limitations such as app size and the ability to support performance enhancements...

kotlinmachine learningonnx
Feb 9, 2023
0
0

ONNX runtime inputs and outputs

Craig Dunn
Craig Dunn

Hello Android developers, Last week we got an ONNX runtime demo running on Android, which classified the subject of images being streamed from the device’s camera. Setup required downloading a pre-trained model and adding it to the sample app on GitHub. This week we’re going to look into the details of preparing inputs for the model...

kotlinmachine learningonnx
Jan 26, 2023
0
0

Relay Anchor Leg: Overall impressions

Kristen Halper
Kristen Halper

Hello Compose developers, Over the last two weeks, I’ve given a brief introduction to Relay, as well as talked about some of the tips and tricks I picked up while using the tool. This week, I’ll share my thoughts on the current state of Relay from the developer point of view. As a reminder, Relay is in alpha, so please go try ...

kotlinJetpack Composedesign
Dec 22, 2022
2
1

Happy Holidays 2022

Craig Dunn
Craig Dunn

Hello Android developers, Inspired by the growth of AI and its role in products like GitHub’s Copilot this year, we asked ChatGPT to “propose some applications for Surface Duo owners to use over the holidays”… One possible application for Surface Duo owners to use over the holidays could be to use the dual screens to ...

Surface DuokotlinJetpack Compose
Dec 15, 2022
1
1

Drag and drop with AndroidX

Craig Dunn
Craig Dunn

Hello Android developers, Foldable and large-screen devices are great for multi-tasking – you can position two apps side-by-side to compare data or just do two things at once! The other benefit of side-by-side apps is the ability to drag and drop content between them, whether the apps are across screens on a dual-screen device, or next...

kotlinfoldable