1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    43
    Vote Rating
    0
    jason is on a distinguished road

      0  

    Default Is Sencha Touch usable on Android/Phonegap?

    Is Sencha Touch usable on Android/Phonegap?


    I've been a user of Ext since the early days when it was called yui-ext so I am pretty familiar with the coding style.

    I've spend the last two days simply trying to get some basic examples (copied directly from the Sencha documentation) to run on an Android emulator using Phonegap. For whatever reason, though, nothing seems to display correctly.

    I just copied the Panel example code directly from the API doc page, so it is literally a Panel with a Title bar and a nav bar w/ a button. When I run the app, there are no errors but the display is mangled with the title bar being invisible, the panel body being invisible and the only thing displaying is the toolbar with a button which is not aligned correctly.

    Additionally I've tried simply opening up an alert box and it's all squashed.

    The only way I've gotten any layout to work is if the screen is already filled with HTML that makes the page height very tall. I'm assuming it could be some kind of height issue. I can find nothing in any examples to suggest what to do though.

    I'm curious of anybody else is running this, I'm about to give up and go with something more lightweight because it's just not saving me any time at all, though I really am a fan of Sencha/Ext I don't want to be blazing the trail if this stuff just isn't working.

    Thanks for any advice.

  2. #2
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    324
    Vote Rating
    2
    profunctional is on a distinguished road

      0  

    Default


    It's very usable. I tested on actual devices and for the most part it's all good. Still some bugs, but you can find work arounds n

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    215
    Vote Rating
    18
    themightychris will become famous soon enough themightychris will become famous soon enough

      0  

    Default


    It sounds like the sencha CSS file might not be getting pulled in.

    Have you tried running your index.html in Safari or Chrome?
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly
    Co-founder @ Devnuts - Philadelphia Hackerspace

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    43
    Vote Rating
    0
    jason is on a distinguished road

      0  

    Default


    i found the reason the layout was so messed up was because i was relying on the phonegap onDeviceReady event to start initializing components.

    However they need to be created only after the Ext.setup 'onReady' event is fired. i added in that code and the layout seems to be working now.

Similar Threads

  1. [SOLVED] How make a sencha touch app offline usable with html5 cache manifest?
    By mrsunshine in forum Sencha Touch 1.x: Discussion
    Replies: 9
    Last Post: 21 Nov 2013, 2:19 PM
  2. Create Android apps with Sencha Touch, PhoneGap and Eclipse
    By paulb777 in forum Sencha Touch 1.x: Discussion
    Replies: 36
    Last Post: 5 Nov 2013, 11:23 PM
  3. Sencha touch + phonegap api
    By posabsolute in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 23 May 2012, 12:07 AM
  4. Application Error when deploying Sencha Touch / PhoneGap app to Android
    By jonide in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 28 Apr 2011, 6:44 AM
  5. sencha + phonegap on Android
    By emm in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 13 Aug 2010, 7:31 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar