Git Product home page Git Product logo

Comments (4)

hixfield avatar hixfield commented on June 14, 2024 1

Since the problem happend in the simulator I created a new simulator configuration with Android pixel 2 and SDK 26. Here the problem is gone. I also found a lot of references to "system UI has stopped" (e.g. on SOV https://stackoverflow.com/questions/15678520/android-emulator-error-system-ui-has-stopped). This leads me to believe its probably an bug in the simulator itself...

from imagepicker.

SergeyMilevskiy avatar SergeyMilevskiy commented on June 14, 2024

For those who faced the same problem =>
Before start lib
val builder = StrictMode.VmPolicy.Builder() StrictMode.setVmPolicy(builder.build())

from imagepicker.

Dhaval2404 avatar Dhaval2404 commented on June 14, 2024

@SergeyMilevskiy This is not a proper solution.

Have you overridden <provider>...</provider> tag on AndroidManifest.xml?

provider tag is added in the library manifest file. It will auto-merge with the app manifest.

image

from imagepicker.

hixfield avatar hixfield commented on June 14, 2024

I think I have the same problem. I'm getting a "System UI has stopped".
To simulate:

  • Run in simulator SDK 26
  • install my app (that is using this lib) from scratch (so that no permission for camera has been received yet)
  • I press button to select a new profile picture (that is when I use the lib in my app)
  • The pop-up appears to select between camera - library pictures (so far so good)
  • Press camera and then I briefly see the "Allow xxxx to access...." immediately overlayed by a "System UI has stopped" error message :

image

  • Pressing [close app] in this message, just pop-up the same "System UI has stopped" message over and over again...
  • If I am fast enough and press the [Allow] button on the initial message (underneath the "System UI has stopped", then pressing [close app] successfully opens the camera app
  • Once the app has camera approval then all works as expected

So I guess there is an issue when pressing camera and no permission has been given yet?

In my AndroidManifest.xml I have indeed a provider section like so:

    <provider
            android:name="com.facebook.FacebookContentProvider"
            android:authorities="@string/facebook_content_provider"
            android:exported="true" />

And I did set:

        android:requestLegacyExternalStorage="true" also in my manifest (targeting min 26 sdk 29)

from imagepicker.

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.