You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Sean Hall (Commented) (JIRA)" <ji...@apache.org> on 2012/04/13 22:24:17 UTC

[jira] [Commented] (CB-246) A blank web browser window is opened on a first interaction with a Sencha Touch 2 app on a Galaxy Tab 2 with Android 3.2

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

Sean Hall commented on CB-246:
------------------------------

I can reproduce it with PhoneGap 1.4.1, Sencha Touch 2.0.0, and Android 3.2.x.  The project setup is standard, with index.html, app.js, and phonegap.js in the assets/www folder, and the sencha sdk in the assets/www/sencha folder.

{code:xml|title=index.html}
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>CB246</title>
        <link rel="stylesheet" href="sencha/resources/css/sencha-touch.css" type="text/css">
        <link rel="stylesheet" href="sencha/resources/css/android.css" type="text/css">
        <script type="text/javascript" src="sencha/sencha-touch-all-debug.js"></script> 
        <script type="text/javascript" src="phonegap.js"></script>
        <script type="text/javascript" src="app.js"></script>
    </head>
    <body>
    </body>
</html>
{code}

{code:javascript|title=app.js}
Ext.ns('CB246.view');

Ext.define('CB246.view.Main', {
    extend: 'Ext.Container',
    config: {
        fullscreen: true,
        layout: 'fit',
        items: [
            {
                xtype: 'button',
                text: 'Go',
                listeners: {
                    tap: function() {
                        Ext.Msg.alert('Alert', 'You clicked the button');
                    }
                }
            }
        ]
    },
});

CB246.onDeviceReady = function() {
    console.log('CB246.onDeviceReady');
    Ext.application({
        name: 'CB246',
        views: [
            'Main',
        ],
        launch: function() {
            console.log('CB246.onDeviceReady.launch');
            Ext.create('CB246.view.Main');
        },
    });
}

document.addEventListener("deviceready", CB246.onDeviceReady, false);
{code}
                
> A blank web browser window is opened on a first interaction with a Sencha Touch 2 app on a Galaxy Tab 2 with Android 3.2
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-246
>                 URL: https://issues.apache.org/jira/browse/CB-246
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>         Environment: Sencha Touch 2 app wrapped in PhoneGap 1.4.1, Galaxy Tab running Android 3.2
>            Reporter: Alexander Kolesnikov
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: android
>
> Please find all the details of the problem and my investigation in the following blog post: http://www.wardnus.com/2012/02/sencha-touch-2-phonegap-blank-web.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira