facebook

phoneui.gotoScreen won’t work inside onPhotoURISucces:CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #347344 Reply

    rick.gommers
    Member

    Hi all,

    I’m stuck on this. For some reason phoneui.gotoScreen() won’t work inside my onPhotoURISuccess method.

    I’ve tried using different screennumbers, i’ve copy pasted the gotoScreen method from other parts of my code where it’s working. Doesn’t matter what I try. It won’t work.

    Even something as simple as this:

    function onPhotoURISuccess(imageURI) {
        
      alert('image uri succes!'); // alert displays without a problem
    
      phoneui.gotoScreen('m1-screen02', 'FADE');
    
    }

    I want to use this function to display my captured photo in a new screen. How can I get this to work?

    Thx in advance!

    #347345 Reply

    Brandon
    Member

    Do you have your screen added via the additional project files?

    #347346 Reply

    rick.gommers
    Member

    yes I have

    #347347 Reply

    support-michael
    Keymaster

    Additionally you may need to use setTimeout(fn2changescreens,millis) with a very short delay.

    #347350 Reply

    rick.gommers
    Member

    Hi Michael,

    Thx for the tip. I have a little 100ms timeout and now it’s working 😀

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: phoneui.gotoScreen won’t work inside onPhotoURISucces:CLOSED

You must be logged in to post in the forum log in