1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    36
    Vote Rating
    0
    stevek is on a distinguished road

      0  

    Default Using sencha touch with appcelerator?

    Using sencha touch with appcelerator?


    Hi guys,
    Is it possible to use appcelerator with sencha touch?
    I ask because it seems that sencha touch is unable to perform certain native tasks, like to programmatically force focus on a textfield without touching it, scanning barcodes to a textfield using a bluetooth handheld scanner, etc...

    I have a real need to be able to scan barcodes into a textfield without the need of "touching" it. If sencha touch cannot do this, is it possible for appcelerator to be a wrapper for sencha touch and tap into it's native functions?

    Feedback would be appreciated.
    Thanks.

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    As i know, you cant mix. Appcelerator convert javascript call to native call once compiled, so if you try to compile mixed code Sencha Touch/Titanium this will not work. You can wrap the senca touch webapp in a webui with Titanium (like phonegap does).

  3. #3
    Sencha User R56's Avatar
    Join Date
    Mar 2011
    Posts
    32
    Vote Rating
    0
    R56 is on a distinguished road

      0  

    Default


    I wouldn't be so sure about Appcelerator converting js call to native call once compiled and I don't know anything that stops you to mix Titanium and sencha touch.
    Do you have any new information about all that?

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Hi, Apps made with appcelerator are native. The javascript call to their framework once compiled are converted to native code by the compiler:
    http://www.appcelerator.com/products...n-development/
    So you cant mix sencha touch javascrpt with appcelerator javascript because there is no appcelerator bridge for sencha touch framework. What you can do is to wrap the sencha touch javascript in an appcelerator webui, but why not just use Phonegap?
    And for the original question there is a Phonegap Plugin for barcode scanner (android and iOs):
    https://github.com/phonegap/phonegap-plugins

  5. #5
    Sencha User R56's Avatar
    Join Date
    Mar 2011
    Posts
    32
    Vote Rating
    0
    R56 is on a distinguished road

      0  

    Default


    Jep, that's what I meant.
    And you're probably right on the Phonegap part - I'm not really familiar with it.

Similar Threads

  1. Replies: 10
    Last Post: 20 Jan 2012, 10:10 AM
  2. Replies: 2
    Last Post: 26 Nov 2010, 9:58 AM
  3. Sencha Touch on iPhone v1 / iPod touch v1 ?
    By palnap in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 28 Oct 2010, 5:30 PM
  4. Replies: 2
    Last Post: 9 Sep 2010, 10:24 AM

Thread Participants: 2