[ 
https://issues.apache.org/jira/browse/CB-5213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809141#comment-13809141
 ] 

Janko Vukotic commented on CB-5213:
-----------------------------------

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.helloCordova" version="2.0.0" 
xmlns="http://www.w3.org/ns/widgets";>
    <name>Hello Cordova</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready 
event.
    </description>
    <author email="[email protected]" href="http://cordova.io";>
        Apache Cordova Team
    </author>
    <access origin="*" />
    <content src="index.html" />
    <preference name="loglevel" value="DEBUG" />
    <feature name="App">
        <param name="android-package" value="org.apache.cordova.App" />
    </feature>
    <feature name="NetworkStatus">
        <param name="android-package" value="org.apache.cordova.NetworkManager" 
/>
    </feature>
    <feature name="InAppBrowser">
        <param name="android-package" 
value="org.apache.cordova.inappbrowser.InAppBrowser" />
    </feature>
</widget>


> navigation.connection.type
> --------------------------
>
>                 Key: CB-5213
>                 URL: https://issues.apache.org/jira/browse/CB-5213
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.1.0
>         Environment: Tested on Androids: Samsung Galaxy SII(4.1.2) and 
> Samsung Galaxy SIII (4.1.2)
>            Reporter: Janko Vukotic
>
> Hi,
> even with a "dummy" template code it wont work. I get this in Web console
> Error initializing Network Connection: Class not found:85
> I installed the plugin via plugman.
> Here is the dummy code: (it alerts "unknown" in any case whether there is any 
> type of data connection or none)
> <!DOCTYPE HTML>
> <html>
> <head>
>     <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
>     <script type="text/javascript" charset="utf-8">
>         var deviceInfo = function(){
>             alert(navigator.connection.type);
>         }
>         function init(){
>             document.addEventListener("deviceready", deviceInfo, true);
>         }
>     </script>
> </head>
> <body onload="init();">
> </body>
> </html>
> Cheers!



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to