Code Monkey home page Code Monkey logo

surface-duo-sdk-samples's Introduction

page_type name languages products description urlFragment
sample
Surface Duo - Java SDK samples
java
surface-duo
Samples showing how to use the Surface Duo SDK to achieve dual-screen user interface patterns.
all

Surface Duo SDK samples in Java

This repo contains samples for dual-screen Surface Duo SDK. These samples demonstrate dual-screen controls and user interface patterns.

Java samples CI


⚠️ This repository is no longer maintained ⚠️

If you want to learn from updated foldable samples, please go to our Surface Duo Kotlin samples.


Get Started

To learn how to load your app on to emulator, and to use it, see the documentation at docs.microsoft.com/dual-screen.

Related links

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

Copyright (c) Microsoft Corporation.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

surface-duo-sdk-samples's People

Contributors

cesarvaliente avatar conceptdev avatar guymerin avatar joyl1216 avatar sayedarifuddin avatar tggmbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

surface-duo-sdk-samples's Issues

Emulator immediately crashes

When I try to run the emulator, a window appears briefly then closes. I've changed the ANDROID_SDK_LOCATION in run.bat to point to my Android SDK location (same as my system ANDROID_HOME env var)
Including the cmd output for more information.
output.txt

Cannot get Emulator to run

I installed the Surface Duo SDK and it appears that everything installed correctly. I found the start menu shortcut for the Emulator, but when I run it, nothing happens except an icon on the taskbar briefly appears, but is gone before it fully loads. I've even run it as an administrator, and nothing happens beyond that.

I'm running Windows 10 Pro, Version 1909 OS Build 18363.592 if that helps any. I just started the process to upgrade to Windows 10 Pro to see if that works.

I am able to run the default Android Emulator with no problems, so I believe my device meets the minimum requirements to run the Emulator.

Deprecated method

Not sure where else to put this - please let me know if I need to move it.

I'm building a simple list app specifically targeting the Surface Duo. The documentation on this page makes reference to WindowManager.defaultDisplay.rotation. However, Android Studio tells me that the defaultDisplay getter is deprecated.

What is your recommended best practice? Is there updated documentation that will be released soon, or should we continue with deprecated methods?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.