Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7917659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:13:45+00:00 2026-06-03T15:13:45+00:00

While trying to debug a Phonegap error message (Call to OpenGL ES api with

  • 0

While trying to debug a Phonegap error message (“Call to OpenGL ES api with no current context” which doesn’t appear to be causing any problems), I came across a newer version of the cordova.xml file which ships with PhoneGap 1.6 and has the following line in it:

<preference name="classicRender" value="true" />

Adding this line to my copy of cordova.xml didn’t do anything. But then I also noticed the comments and other lines in that file regarding access origins, and I noticed that my app has the access origin set to 127.0.0.1 but all my code is on a remote server, and this doesn’t seem to matter.

I searched for documentation but didn’t find any.

So I have to ask: what is the cordova.xml file for, what directives can be put in it, and what are they supposed to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:13:46+00:00Added an answer on June 3, 2026 at 3:13 pm

    The cordova.xml file is a configuration file that specifies settings for whitelisted urls, log level, and rendering. The file was previously called phonegap.xml and was renamed when Adobe/Nitobi donated the PhoneGap codebase to the Apache Software Foundation (ASF) for incubation.

    The file includes three settings.

    First is:

    <access origin>
    

    which specifies an approved list of URLs that can be loaded. These urls are added to the whitelist cache in the DroidGap class. Only URLs on the whitelist can be loaded in the Cordova webview or a new browser instance.

    Second is:

    <log level> 
    

    which specifies log level for debugging on Android . It can be set to ERROR, WARN, INFO, DEBUG or VERBOSE (default=ERROR).

    Third is:

    <preference name="classicRender" />
    

    which sets the field

    private boolean classicRender;
    

    in the DroidGap class. The only reference to what it actually does that I can find is in this commit to Cordova:

       if(android.os.Build.VERSION.SDK_INT < 14 && this.classicRender)
         {
             //This hack fixes legacy PhoneGap apps
             //We should be using real pixels, not pretend pixels
       ...
    

    Perhaps it’s more useful to know that it’s apparently being removed since it doesn’t work properly.

    The cordova.xml is parsed in the DroidGap class, in the loadConfiguration() method:

    private void loadConfiguration() {
         int id = getResources().getIdentifier("cordova", "xml", getPackageName());
         ...
         XmlResourceParser xml = getResources().getXml(id);
         etc...
    

    See line 1252 in the DroidGap class for full loadConfiguration() method. All three attributes are parsed but as per above link it appears the classicRender setting doesn’t work and can be ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was getting the following error message while trying to debug my code: Not
I'm trying to debug why I get this error: Error occurred while sending a
I am getting this error while I am trying to debug my app on
While trying to debug my openid implementation with Google, which kept returning Apache 406
While I trying to debug a 'C' program with gdb, I always get the
While trying to host the CLR, I keep getting this: error C2440: 'function' :
Today I experienced a weird problem while trying to remotely debug an application built
While trying to debug my program in Xcode 4.2, I turned on breakpoints and
While trying to configure eclipse, tomcat to debug a maven project I am getting
While I'm trying to debug a program, at a moment I'm asked to Attach

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.