Using android's native Camera App to capture photos throws SecurityException

后端 未结 3 1265
梦如初夏
梦如初夏 2021-01-25 02:58

I am trying to take photo from android device\'s native Camera App. For that i create a file first and then attach its URI with the intent to capture image and write output in t

3条回答
  •  太阳男子
    2021-01-25 03:31

    However, not all Android devices actually have these hardware features. So if your app requests the CAMERA permission, it's important that you also include the tag in your manifest to declare whether or not this feature is actually required. For more information, see Google Play and feature-based filtering

    
    
        
        
        
        
            
                
                    
                    
                
            
        
    
    

    From Marshmallow, Dangerous permissions are:

    1. READ_CALENDAR
    2. WRITE_CALENDAR
    3. CAMERA
    4. READ_CONTACTS
    5. WRITE_CONTACTS
    6. GET_ACCOUNTS
    7. ACCESS_FINE_LOCATION
    8. ACCESS_COARSE_LOCATION
    9. RECORD_AUDIO
    10. READ_PHONE_STATE
    11. CALL_PHONE
    12. READ_CALL_LOG
    13. WRITE_CALL_LOG
    14. ADD_VOICEMAIL
    15. USE_SIP
    16. PROCESS_OUTGOING_CALLS
    17. BODY_SENSORS
    18. SEND_SMS
    19. RECEIVE_SMS
    20. READ_SMS
    21. RECEIVE_WAP_PUSH
    22. RECEIVE_MMS
    23. READ_EXTERNAL_STORAGE
    24. WRITE_EXTERNAL_STORAGE

    SO i think Permission may be required...

提交回复
热议问题