Question

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?

Était-ce utile?

La solution

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.

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top