Accessing android:installLocation manifest attribute

前端 未结 4 1253
小鲜肉
小鲜肉 2021-01-02 20:15

I\'m trying to write an Android 2.2 app that will find installed apps that can be moved to the SD card. The permission to do this is encoded in the AndroidManifest.xml file

4条回答
  •  鱼传尺愫
    2021-01-02 20:43

    In the older API's from 2007, there was public fields in the PackageInfo class that gave all information on the internalLocation and other relevant information. For security reasons I am guessing they got rid of those convenient fields.

提交回复
热议问题