Francesco
Francesco

Reputation: 149

Phonegap: unable to override AndroidManifest.xml

I would like to limit the use of my Phonegap app to tablets only. Reading this page it seems to be possible via config.xml file.

In my config.xml file I made this changes:

  1. Added: xmlns:android = "http://schemas.android.com/apk/res/android"
  2. Added

    <gap:config-file platform="android" parent="/manifest"> <supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" android:requiresSmallestWidthDp="600" /> </gap:config-file>

When I build the app, I can't see changes on the AndroidManifest.xml. Where is my error? This procedure should works both with local build and remote build using build.phonegap.com?

Thanks in advance.

Upvotes: 0

Views: 238

Answers (1)

Francesco
Francesco

Reputation: 149

Ok, after some hours I understand what happen: the gap:config-file works fine only if you use the PhoneGap Build (build.phonegap.com). After that I used android-apktool to get the AndroidManifest.xml from the generated .apk and I see my configuration.

Upvotes: 1

Related Questions