ICEmobile
  1. ICEmobile
  2. MOBI-441

mobiRefresh breaks device integration with camera and other native activities.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2 Beta
    • Component/s: Containers, Spring
    • Labels:
      None
    • Environment:
      Android container, icemobliespring

      Description


      A fix to the android container to properly call mobiRefresh() in native-interface.js has adverse side-effects on JSP-based applications, and particularly, calls to camera, camcorder, mic, and QR scan. For instance, when the camera is activated, and takes a picture, the resulting file name is stored in a hidden field, and the thumbnail is set. When returning from the camera activity to the container, onResume() runs, mobiRefresh() is called, and the page is reloaded, wiping out the hidden fields set by the camera interface.

        Activity

        Migration created issue -
        Hide
        Steve Maryka added a comment - - edited

        Seems like maybe the best thing to do in non-icefaces cases is nothing. In android container we could detect returning from camera, etc.. and avoid the page reload in those conditions. Going into history or preferences will also cause onResume() to run, but should that force a page reload? The only time you really need to reload, is if an ajax push has occurred, and even then you don't want to toss away results of the camera activity.

        Show
        Steve Maryka added a comment - - edited Seems like maybe the best thing to do in non-icefaces cases is nothing. In android container we could detect returning from camera, etc.. and avoid the page reload in those conditions. Going into history or preferences will also cause onResume() to run, but should that force a page reload? The only time you really need to reload, is if an ajax push has occurred, and even then you don't want to toss away results of the camera activity.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #31774 Thu Oct 25 15:16:39 MDT 2012 steve.maryka mobi-441: Now only call mobiRefresh() in onResume() if a cloud push occured while paused.
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/client/android/container/libs/iceC2dm.jar
        Commit graph MODIFY /icemobile/trunk/icemobile/client/android/container/src/org/icemobile/client/android/ICEmobileContainer.java
        Migration made changes -
        Field Original Value New Value
        Reporter Migration [ remote ] Steve Maryka [ steve.maryka ]
        Migration made changes -
        Fix Version/s 1.2 Beta [ 10344 ]
        Philip Breau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Steve Maryka
            Reporter:
            Steve Maryka
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: