question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System UI has stopped message when I call camera.getPermissions on button tap

See original GitHub issue

I’m developing an Android app and this is the tap listener for my button.

(tap)=getPermissions(args) {
camera.requestPermissions();
}

Every time I click on the button, I get an error message “System UI has stopped” on Android emulator!

  • CLI: 3.1.3
  • Cross-platform modules: 3.1.1
  • Runtime: Android
  • package.json:
"nativescript": {
    "id": "org.nativescript.sampleApp",
    "tns-android": {
      "version": "3.1.1"
    },
    "tns-ios": {
      "version": "3.1.0"
    }
  },
  "dependencies": {
    "@angular/animations": "~4.1.0",
    "@angular/common": "~4.1.0",
    "@angular/compiler": "~4.1.0",
    "@angular/core": "~4.1.0",
    "@angular/forms": "~4.1.0",
    "@angular/http": "~4.1.0",
    "@angular/platform-browser": "~4.1.0",
    "@angular/router": "~4.1.0",
    "font-awesome": "^4.7.0",
    "nativescript-angular": "~3.1.0",
    "nativescript-camera": "^3.0.1",
    "nativescript-couchbase": "^1.0.18",
    "nativescript-ngx-fonticon": "^2.2.3",
    "nativescript-telerik-ui": "^3.0.4",
    "nativescript-theme-core": "~1.0.2",
    "reflect-metadata": "~0.1.8",
    "rxjs": "^5.4.2",
    "tns-core-modules": "^3.1.1",
    "zone.js": "~0.8.2"
  },
  "devDependencies": {
    "babel-traverse": "6.25.0",
    "babel-types": "6.25.0",
    "babylon": "6.17.4",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "~0.5.0",
    "typescript": "~2.2.1"
  }

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mutazmqcommented, Aug 16, 2017

@NickIliev I used a different AVD and it works fine. Seems that AVD specifically has an issue. Thank you

0reactions
lock[bot]commented, Aug 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix System UI Has Stopped Working on Android
If your Android phone's System UI stopped working, don't panic, you're not alone. ... Tap on the "Update" button for each app to...
Read more >
Top 8 Ways to Fix System UI Has Stopped Issue on Android
We shall offer you eight solutions to fix the System UI has stopped issue on your phone in this post. System ui has...
Read more >
How to Fix “Unfortunately, System UI has stopped” Error in ...
Re-start your device · end call power button · Press and hold the “Power” button until a menu appears. · Select “Power off“...
Read more >
Fix Unfortunately System UI Not Responding with Pictures
All you have to do is press the Power button on your Android device and hold it till the options are displayed on...
Read more >
How request permissions with Jetpack Compose?
Granted -> { Text("Camera permission Granted") } is PermissionStatus. ... screen recomposed //you can call it inside a button click without ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found