'Bluetooth Permission in Android?
Currently, I am facing an issue in Bluetooth permission option as I am having Bluetooth permission in starting of my application i.e. on 1st screen of app. Now if I click on "Deny" button then the activity gets closed and it seems like app gets crashed as it is in the 1st activity of app.
Is there any way to stop app from getting crashed or we can say to stop the activity from getting destroyed. Any help will be appreciable.
Here the log is as follows,
32760/com.or E/MainActivity: ::>>>onStart called.....
32760/com.or E/test: Online Connect Internet
32760/com.or E/test: Online Connect Internet
32760/com.or E/MainActivity: ::>>>onPause called.....
715/com.or I/Adreno: Build Config : S L 6.0.7 AArch64
715/com.or I/Adreno: PFP: 0x005ff112, ME: 0x005ff066
715/com.or I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
715/com.or I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
715/com.or I/OpenGLRenderer: Initialized EGL, version 1.4
715/com.or D/OpenGLRenderer: Swap behavior 2
32760/com.or E/MainActivity: ::>>>onStop called.....
32760/com.or E/MainActivity: ::>>>onDestroy called.....
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
