Why my map app crashes if I set maxSdkVersion in the WRITE_EXTERNAL_STORAGE permission?

后端 未结 3 1941
终归单人心
终归单人心 2021-02-06 16:34

I\'ve set my map following the instructions in this link. And set the WRITE_EXTERNAL_STORAGE permission in accordance with the recomended by the Official Android Do

3条回答
  •  终归单人心
    2021-02-06 17:02

    I did some research around the maxSdkVersion. And I found the following

    From google http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

    Warning: Declaring this attribute is not recommended. First, there is no need to set the attribute as means of blocking deployment of your application onto new versions of the Android platform as they are released. By design, new versions of the platform are fully backward-compatible. Your application should work properly on new versions, provided it uses only standard APIs and follows development best practices. Second, note that in some cases, declaring the attribute can result in your application being removed from users' devices after a system update to a higher API Level. Most devices on which your application is likely to be installed will receive periodic system updates over the air, so you should consider their effect on your application before setting this attribute.

    I have something like this in my current working google app

     
    
    
    
    
    
    
    
    
    
    
    

    So if you really want, you can try put that maxSdkVersion in the note, unless its what google is documented in the above link.

    Hope this help

提交回复
热议问题