I am developing an app for Android, and, after uploading it to Google Play, I realised that I was not depending on a <uses-feature> anymore, so I removed it. To be more specific, I was coding a Camera Activity, so I needed these features:

android.hardware.CAMERA
android.hardware.camera.AUTOFOCUS

However, after that, I decided to go for the Camera Intent. That's why I removed them.

My surprise comes when I see that the APK Information modal shows that it is still using those features, even if they aren't in my Manifest.

My question is, does that mean that I will "need" those features, even if I removed them? Maybe because they are depending on the Camera Intent?

有帮助吗?

解决方案

I "figured it out". When you add a android:required="false" to the <uses-feature>, it becomes unnecessary and is removed from the APK information.

其他提示

Your Application uses those feature because you added <uses-permission> in your code. Whenever you specify permission it access all the features until you uniquely not specify which features you exactly want to use in your application.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top