You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Khai Bui (JIRA)" <ji...@apache.org> on 2013/10/08 13:18:41 UTC

[jira] [Commented] (CB-5014) Clicked on the button or text box, but not work

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

Khai Bui commented on CB-5014:
------------------------------

I duplicated
onCreate set load time to 90000. So that i can not click th button.

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        // Set by <content src="index.html" /> in config.xml
        super.loadUrl(Config.getStartUrl(), 90000);
        //super.loadUrl("file:///android_asset/www/index.html")
    }

When i remove time 9000. It work fine


> Clicked on the button or text box, but not work
> -----------------------------------------------
>
>                 Key: CB-5014
>                 URL: https://issues.apache.org/jira/browse/CB-5014
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, App Hello World
>    Affects Versions: 3.0.0
>         Environment: Emulator Android 4.3
>            Reporter: Khai Bui
>             Fix For: Master
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> I clicked on the button 'Click Me!'. But it didn't fire any event. 
> I locked and unlock emulator screen, then click the button will work.
> Plugins installed
> 1. Splashscreen
> 2. Geolocation
> 3. InAppBrowser
> 4. Notification
> 5. Connection
> This is a full html sample page.
> <html>
>     <head>
>         <meta charset="utf-8" />
>         <meta name="format-detection" content="telephone=no" />
>         <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
>         <link rel="stylesheet" type="text/css" href="css/index.css" />
>         <title>Hello World</title>
>     </head>
>     <body>
>         <div class="app">
>             <h1>Apache Cordova</h1>
>            	<button data-role="button" data-iconpos="right" data-icon="arrow-r" onclick="console.log('Clicked')">Click Me!</button>
>             <div id="deviceready" class="blink">
>                 <p class="event listening">Connecting to Device</p>
>                 <p class="event received">Device is Ready</p>
>             </div>
>         </div>
>         <script type="text/javascript" src="cordova.js"></script>
>         <script type="text/javascript" src="js/index.js"></script>
>         <script type="text/javascript">
>             app.initialize();
>         </script>
>     </body>
> </html>



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