Code Monkey home page Code Monkey logo

Comments (4)

stefan-niedermann avatar stefan-niedermann commented on August 14, 2024 1

Aaah, got it. I fetch the Account via AccountImporter.getAccountForName(accountName) and pass the result into AccountImporter.pickNewAccount(myActivity, listWithMyAccountEntry)?

I will try this as soon as possible and give feedback whether or not it works :) Thank you.

from android-singlesignon.

tobiasKaminsky avatar tobiasKaminsky commented on August 14, 2024

As far as I remember you have to use pickNewAccount, as this is calling AccountManager.newChooseAccountIntent(…) which makes sure that user is granting the account (for Android), so that we can access the account.
The later "grand access" dialog is only for us and theoretically not needed, but better for good UX.

What you could try is to only pass the one desired account into pickNewAccount. Youl will then see the "add new account", I fear, as this is nothing we can control.

from android-singlesignon.

stefan-niedermann avatar stefan-niedermann commented on August 14, 2024

How can i pass the desired account to pickNewAccount? It only accepts a single argument which has to be Activity or Fragment?

from android-singlesignon.

tobiasKaminsky avatar tobiasKaminsky commented on August 14, 2024

Try the new branch: https://github.com/nextcloud/Android-SingleSignOn/pull/108/files#diff-6ad158bec90aaf2023374e3b382771a2R90

from android-singlesignon.

Related Issues (20)

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.