You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org> on 2012/10/02 09:39:11 UTC

[jira] [Created] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Ismael Olusola Jimoh created CB-1568:
----------------------------------------

             Summary: Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
                 Key: CB-1568
                 URL: https://issues.apache.org/jira/browse/CB-1568
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CordovaJS
    Affects Versions: 2.1.0
            Reporter: Ismael Olusola Jimoh
            Assignee: Joe Bowser


Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

Please would appreciate any help.

Thanks in advance.

-Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477193#comment-13477193 ] 

Andrew Grieve commented on CB-1568:
-----------------------------------

Joe, can you paste in the bug/commit of the monkeypatching you mentioned as well as the history bug? What are the URL handling tricks that you're referring to?

It's likely that we could do further monkeypatching, by redefining the window.open() function (verified this is possible on the android 2.3.3 emulator).


                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Description: 
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Samsung Galaxy S3 (international version) - has error
-Galaxy Nexus on Android 4.1 - works normally
-Android 4.0 Emulator - has error

Below is the code I am trying to run
_______________________________________________________________________________________________________________________
Index1.html:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
"http://www.w3.org/TR/html4/strict.dtd">    
<html>    
  <head>   
       <title>Media Example</title>
               <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
                <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
         <script type="text/javascript" charset="utf-8">
  function nextpage(){
  window.open("index2.html?Id="+25);
  }
          </script>
          </body>  
          <input type="button" value="button1" onclick="nextpage();"/>  
 </html>
________________________________________________________________________________________________________________________
Index2.html:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
"http://www.w3.org/TR/html4/strict.dtd">    
<html>    
  <head>   
       <title>Media Example</title>
               <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
                <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
         <script type="text/javascript" charset="utf-8">
 
          </script>
          </body>  
         welcome
 </html>
___________________________________________________________________________________________________________________________


Please would appreciate any help.

Thanks in advance.

-Ismael

  was:
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Samsung Galaxy S3 (international version) - has error
-Galaxy Nexus on Android 4.1 - works normally
-Android 4.0 Emulator- has error

Below is the code I am trying to run
_______________________________________________________________________________________________________________________
Index1.html:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
"http://www.w3.org/TR/html4/strict.dtd">    
<html>    
  <head>   
       <title>Media Example</title>
               <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
                <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
         <script type="text/javascript" charset="utf-8">
  function nextpage(){
  window.open("index2.html?Id="+25);
  }
          </script>
          </body>  
          <input type="button" value="button1" onclick="nextpage();"/>  
 </html>
________________________________________________________________________________________________________________________
Index2.html:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
"http://www.w3.org/TR/html4/strict.dtd">    
<html>    
  <head>   
       <title>Media Example</title>
               <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
                <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
         <script type="text/javascript" charset="utf-8">
 
          </script>
          </body>  
         welcome
 </html>
___________________________________________________________________________________________________________________________


Please would appreciate any help.

Thanks in advance.

-Ismael

    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Description: 
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

On a side note, this error was not seen in previous versions of cordova.

Please would appreciate any help.

Thanks in advance.

-Ismael

  was:
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

Please would appreciate any help.

Thanks in advance.

-Ismael

    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.
> On a side note, this error was not seen in previous versions of cordova.
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Description: 
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Galaxy Nexus on Android 4.1 - works normally

Please would appreciate any help.

Thanks in advance.

-Ismael

  was:
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

On a side note, this error was not seen in previous versions of cordova.

Please would appreciate any help.

Thanks in advance.

-Ismael

    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Galaxy Nexus on Android 4.1 - works normally
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477270#comment-13477270 ] 

Joe Bowser commented on CB-1568:
--------------------------------

Also, I segmented this fix off to remove a compile error.  Check out IceCreamCordovaWebViewClient.java for this fix.
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472482#comment-13472482 ] 

Andrew Grieve commented on CB-1568:
-----------------------------------

Joe, is this related to the bad history plugin on Android?
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Description: 
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Samsung Galaxy S3 (international version) - has error
-Galaxy Nexus on Android 4.1 - works normally
-Android 4.0 Emulator- has error

Below is the code I am trying to run
_______________________________________________________________________________________________________________________
Index1.html:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
"http://www.w3.org/TR/html4/strict.dtd">    
<html>    
  <head>   
       <title>Media Example</title>
               <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
                <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
         <script type="text/javascript" charset="utf-8">
  function nextpage(){
  window.open("index2.html?Id="+25);
  }
          </script>
          </body>  
          <input type="button" value="button1" onclick="nextpage();"/>  
 </html>
________________________________________________________________________________________________________________________
Index2.html:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
"http://www.w3.org/TR/html4/strict.dtd">    
<html>    
  <head>   
       <title>Media Example</title>
               <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
                <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
         <script type="text/javascript" charset="utf-8">
 
          </script>
          </body>  
         welcome
 </html>
___________________________________________________________________________________________________________________________


Please would appreciate any help.

Thanks in advance.

-Ismael

  was:
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Samsung Galaxy S3 (international version) - has error
-Galaxy Nexus on Android 4.1 - works normally

Please would appreciate any help.

Thanks in advance.

-Ismael

    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator- has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477183#comment-13477183 ] 

Joe Bowser commented on CB-1568:
--------------------------------

It turns out that window.open skips the URL handling tricks that we do. This is frustrating, and I'm not sure how we can fix this.
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484391#comment-13484391 ] 

Joe Bowser commented on CB-1568:
--------------------------------

OK, Fixed it now!  The problem was that when we use DroidGap, which is the default way of working with CordovaWebView, we still load the CordovaWebViewClient manually there.  This is wrong, because we should be taking care of our WebViewClient in one spot, the WebView.  Since we have an ICS version for Honeycomb and ICS and one for everything else, we need to make sure we initialize the right one, which we have never been doing. :(

This is partly my fault because I refactored it to fix a compile/runtime error on Android 2.x that the ICS fix caused.

Here are the relevant commits:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=6aafd6dc3aec1ed1fe1d7a3e08d73deedddbc3a3
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=71a7f72ab9d6a7f7e5db6423941adf6b0b99c98f

We need to make sure that we have the activities client not null, since I believe another part of the code still uses it.
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Attachment: phoneGap2_1_Test.rar

Attached here with is the project file that was used to produce the said error.

Error occurs only in android 3.2(Samsung Galaxy Tab) and Quite a few Android 4.0 (Ice Cream Sandwich phones).
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator- has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Description: 
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Galaxy Nexus on Android 4.1 - works normally

Please would appreciate any help.

Thanks in advance.

-Ismael

  was:
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Galaxy Nexus on Android 4.1 - works normally

Please would appreciate any help.

Thanks in advance.

-Ismael

    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Galaxy Nexus on Android 4.1 - works normally
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-1568.
----------------------------

    Resolution: Fixed
    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484317#comment-13484317 ] 

Joe Bowser commented on CB-1568:
--------------------------------

OK, this is worse than I thought. I just re-tested on 4.0.3, the fix from juanghurtado isn't actually being used when you load a page with a param on it.  We should switch the default back to the shim history until this is resolved.
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477205#comment-13477205 ] 

Joe Bowser commented on CB-1568:
--------------------------------

It wasn't me that did it.  Here's the fix from juanghurtado: https://github.com/infil00p/callback-android/commit/6de66b87cb84c4ad4e9c4bb0f1e053be70fabf59

Here's my attempt at fixing the problem in Android itself.  (I got nailed on style, and Android Team fixed it in secret. :( ): https://android-review.googlesource.com/#/c/31870/1/core/java/android/webkit/BrowserFrame.java
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-1568:
---------------------------

    Fix Version/s: 2.2.0
    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Ismael Olusola Jimoh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismael Olusola Jimoh updated CB-1568:
-------------------------------------

    Description: 
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Samsung Galaxy S3 (international version) - has error
-Galaxy Nexus on Android 4.1 - works normally

Please would appreciate any help.

Thanks in advance.

-Ismael

  was:
Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.

I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS.

On a side note, this error was not seen in previous versions of Cordova.

Devices tested:
-Samsung Galaxy S2 9100G running Android 4.0.3 - has error
-Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
-Galaxy Nexus on Android 4.1 - works normally

Please would appreciate any help.

Thanks in advance.

-Ismael

    
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477168#comment-13477168 ] 

Joe Bowser commented on CB-1568:
--------------------------------

History isn't a plugin, but this could be the old Android history bug where Java can't handle URLs with anchors or params.  However, we monkeypatched this recently.
                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira