1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    10
    Vote Rating
    0
    offirgolan is on a distinguished road

      0  

    Default Unanswered: Camera Capture Not Working in Navigation View

    Unanswered: Camera Capture Not Working in Navigation View


    Hi there,

    So im trying to implement an image upload functionality in my application but I cant get it to work within my navigation view. When I make my "Cover Image" panel my initial view, I am able to change the image src of my imageView but when I make my navigation view my init view, I dont think my app enters the success function in the handler.

    Here is my handler

    Code:
    {                        xtype: 'button',
                            handler: function(button, event) {
                                Ext.device.Camera.capture({
                                    source: 'library',
                                    destination: 'file',
                                    quality: 100,
                                    //width: 202,
                                    //height: 302,
    
    
                                    success: function(image) {
                                        // Update the image view
                                        Ext.Msg.alert('Image URL', '' + image); 
                                        var imageView = this.getParent().getParent().down('#bookCover');
                                        imageView.setSrc(image);
    
    
                                        // Upload image here
                                    },
                                    failure: function() {
                                        Ext.Msg.alert('Error', 'There was an error when acquiring the picture.');
                                    },
                                    scope: this
                                });
                            },
                            itemId: 'library',
                            ui: 'confirm-round',
                            width: '100px',
                            text: 'Library'
                        }
    How my panel is build is that there like this

    [ COVER IMAGE]
    [CAPTURE] [ LIBRARY]

    When i press the Library button, it opens up the image library browser but when I click on an image it doesnt change the image src nor does it display the message alert. When I make this panel my init view, everything works as expected.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,780
    Answers
    3465
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Are you in a packaged app?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jun 2013
    Posts
    10
    Vote Rating
    0
    offirgolan is on a distinguished road

      0  

    Default


    Yes both scenarios are in a native/packaged app. Im testing this in the iOS Simulator.

  4. #4
    Sencha User
    Join Date
    Jun 2013
    Posts
    10
    Vote Rating
    0
    offirgolan is on a distinguished road

      0  

    Default


    Anyone?

    So in my navigational view, im noticing that after I choose an image on the native device from the library, the success or failure functions are not being called.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi