11 Replies Latest reply on Jan 9, 2015 12:35 PM by Gert Vandelaer

    Rho::Intent.send relaunches app at end of activity

    Gert Vandelaer

      Hi all,

       

      I'm trying to figure out Intents in Rhomobile (git rhodes 5-0-stable)

       

      I made a controller function like this (docs are not clear for me about callback handler) :

       

      def open_native_camera

        puts "Open Native camera app"

        intent_params = { :action     => "android.media.action.IMAGE_CAPTURE",

                          :intentType => Rho::Intent::START_ACTIVITY,

                          :data       => { :output => Rho::RhoFile.join(Rho::RhoApplication::get_base_app_path(), "#{$logguid}") }

                        }

       

        Rho::Intent.send(intent_params) # I tried with (url_for: action => :some_callback), but it never gets there because app relaunches and has forgotten all about this by than.

      end

       

      The camera app opens fine, but it doesn't return to where it was before the Intent got launched. In stead it just relaunches the app

      I know I could create a rhom object and toggle a switch there and point "start_path" to some function to find out where the app was before the Intent, but that looks so sloppy.

      ...

       

      Am I doing something wrong here ?

       

      Also, the Extra :data section should store the captured image in my specified location according to Android docs MediaStore | Android Developers

      but this is failing too

       

      grtz,

      gert

        • Re: Rho::Intent.send relaunches app at end of activity
          Robert Galvin

          Not sure why the app is relaunhing. Any logs to share? The 'output' needs to be in Android Content URI format it is not just the file path. Best bet is to look at some native Android Uri.fromFile() to see what it provides. It is something like: content://authority/optionalPath/optionalId

            • Re: Rho::Intent.send relaunches app at end of activity
              Gert Vandelaer

              Hi Robert,

              I changed the controller a bit, changed "output" field as per Andoird API doc : Camera | Android Developers

              the constant to be used is "output" : MediaStore | Android Developers although I'm not sure how to construct

               

              def open_native_camera

                puts "Open Native camera app"

                file = Rho::RhoFile.join(Rho::RhoApplication::get_base_app_path(), "#{$loggedin}_group")

                puts "File for output : #{file}"

               

                intent_params = { :action     => "android.media.action.IMAGE_CAPTURE",

                                  :intentType => Rho::Intent::START_ACTIVITY,

                                  #:uri        => "content://"+,

                                  :data       => { :output => "content://#{file}" }

                                  #:callback   => ( url_for :action => :nat_cam )

                                }

                Rho::Intent.send(intent_params, (url_for :action => :nat_cam ))

              end

               

              def nat_cam

                puts "Native camera app callback"

                puts "Return : #{@params['data']['output']}"

              end

               

               

              here's the relevant part of rholog.txt about the native camera Intent

               

               

              I/APP     (19145): I 09/05/2014 20:36:00:378 00004afd                  APP| Open Native camera app

              I/APP     (19145): I 09/05/2014 20:36:00:378 00004afd                  APP| File for output : /data/data/com.godsells.wyoki/rhodata/apps/app33

              I/ActivityManager( 1014): START u0 {act=android.media.action.IMAGE_CAPTURE cmp=com.motorola.camera/.Camera (has extras)} from pid 19145

              I/APP     (19145): I 09/05/2014 20:36:00:404 00004afd  RHO GroupController| Layout file: /data/data/com.godsells.wyoki/rhodata/apps/app/layout_erb.iseq. Content size: 4948

              I/APP     (19145): I 09/05/2014 20:36:00:410 00004afd           HttpServer| GC Start.

              W/ContextImpl( 1307): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.m

              otorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.fram

              eworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114

              I/APP     (19145): I 09/05/2014 20:36:00:421 00004ac9 AndroidFunctionality| Pause WebView

              I/APP     (19145): I 09/05/2014 20:36:00:426 00004afd           HttpServer| GC End.

              I/APP     (19145): I 09/05/2014 20:36:00:426 00004afd           HttpServer| Process URI: '/system/uidestroyed'

              I/APP     (19145): I 09/05/2014 20:36:00:426 00004afd                  APP| AppEvent UIDestroyed

              I/APP     (19145): I 09/05/2014 20:36:00:428 00004ac9    RhodesApplication| New UiState: MainActivityPaused

              I/ActivityManager( 1014): Start proc com.motorola.camera for activity com.motorola.camera/.Camera: pid=19841 uid=10032 gids={50032, 1028, 1015}

              W/ContextImpl( 1307): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.m

              otorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.fram

              eworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114

              I/ActivityManager( 1014): Process dk.tacit.android.foldersync.lite (pid 19662) has died.

              D/WifiService( 1014): Client connection lost with reason: 4

              F/ProcessStats( 1014): Starting service ServiceState{438db128 com.facebook.push.mqtt.service.MqttPushService pkg=com.facebook.orca proc=438db128} without owner

              W/AppOps  ( 1014): Bad call: specified package qcamera under uid 1013 but it is really -1

              D/Plume_56403(25559): clear PhotoCache memory

              W/AppOps  ( 1014): Bad call: specified package qcamera under uid 1013 but it is really -1

              W/AppOps  ( 1014): Bad call: specified package qcamera under uid 1013 but it is really -1

              W/AppOps  ( 1014): Bad call: specified package qcamera under uid 1013 but it is really -1

              E/BlurCheckin(19841): Checkin class does not exist:java.lang.ClassNotFoundException: com.motorola.checkinwrapper.CheckinEventWrapper

              D/WifiStateMachine( 1014): handleMessage: E msg.what=151572

              D/WifiStateMachine( 1014): processMsg: ConnectedState

              D/WifiStateMachine( 1014): processMsg: L2ConnectedState

              D/WifiStateMachine( 1014): handleMessage: X

              I/Adreno-EGL(19841): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.018_msm8226_LNX.LA.3.5.1_RB1__release_AU ()

               

              I/APP     (19145): I 09/05/2014 20:36:01:169 00004ac9    RhodesApplication| New AppState: AppDeactivated

              I/APP     (19145): I 09/05/2014 20:36:01:170 00004ac9        RhodesService| activityStopped() temporary release wakeLock object

              I/APP     (19145): I 09/05/2014 20:36:01:170 00004ac9            RhodesApp| callAppActiveCallback

              I/APP     (19145): I 09/05/2014 20:36:01:170 00004ac9         AppCallbacks| addCommand: APP-DEACTIVATED

              I/APP     (19145): I 09/05/2014 20:36:01:171 00004aec         AppCallbacks| APP-DEACTIVATED is received ++++++++++++++++++++++++++++

              I/APP     (19145): I 09/05/2014 20:36:01:171 00004aec         AppCallbacks| process command: APP-DEACTIVATED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

              I/APP     (19145): I 09/05/2014 20:36:01:172 00004aec         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...

              I/APP     (19145): I 09/05/2014 20:36:01:173 00004afd           HttpServer| Process URI: '/system/deactivateapp'

              I/APP     (19145): I 09/05/2014 20:36:01:173 00004afd                  APP| AppEvent Deactivated

              E/mm-camera-sensor(  350): sensor_write_lsc:268 using default or module LSC

              E/mm-camera-sensor(  350): module_sensor_start_session:702 failed

              E/mm-camera-sensor(  350): module_sensor_start_session:708 failed

              E/mm-camera-intf(  278): mm_camera_open:  opened, break out while loop

              D/QCamera2HWI(  278): int qcamera::QCamera2HardwareInterface::openCamera(): enable_4k2k is 0

              E/qomx_image_core(  278): OMX_Init:94] Complete 2

              E/QCameraHWI_Mem(  278): int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available

              D/QCameraHWI_Mem(  278): static int qcamera::QCameraMemory::allocOneBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool) : ION buffer 0x1 with size 297192 allocated

              E/QCameraHWI_Mem(  278): int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available

              D/QCameraHWI_Mem(  278): static int qcamera::QCameraMemory::allocOneBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool) : ION buffer 0x1 with size 65544 allocated

              D/QCameraParameters(  278): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported preview sizes: 1280x720,864x480,800x480,768x432,720x480,640x480,576x432,480x320,384x288,352x288,320x240,240x160,176x144

              D/QCameraParameters(  278): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported video sizes: 1280x720,864x480,800x480,720x480,640x480,480x320,352x288,320x240,176x144

              D/QCameraParameters(  278): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported pic sizes: 2592x1944,2592x1456,2048x1536,1920x1080,1600x1200,1440x1080,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480

              I/QCameraParameters(  278): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported live snapshot sizes: 1280x768,1280x720,1024x768,800x600,864x480,800x480,720x480,640x480,352x288,320x240,176x144

               

               

              And than the native camera app opens ...  I can see in the log that my timers are triggered fine, so the app is not dead ...

              take a picture ... select "Ok" or "Cancel" ... there's a lot more messages related to the camera app, but I don't think they are relevant here ?

               

              Than I take picture, i select "V" to say it's OK, and the callback gets fired ...

               

              D/Checkin (27386): publish the event [tag = MOT_CAMERA_STATS event name = USER_EXITED_APP]

              D/Checkin (19841): publish the event [tag = MOT_CAMERA_STATS event name = POST_CAPTURE]

              D/Checkin (19841): publish the event [tag = MOT_CAMERA_STATS event name = SHOT_TO_SHOT]

              D/WifiStateMachine( 1014): handleMessage: X

              W/ContextImpl( 1307): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.m

              otorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.fram

              eworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114

              D/Sensors ( 1014): AccelerationSensor: set delay 200

              D/dalvikvm(19841): GC_FOR_ALLOC freed 774K, 23% free 19608K/25232K, paused 24ms, total 24ms

              D/Checkin (19841): publish the event [tag = MOT_CAMERA_STATS event name = USER_EXITED_APP]

              I/QCameraHalWatchdog(  278): Starting Watchdog Thread...

              E/QCamera2HWI(  278): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): E PROFILE_STOP_PREVIEW

              D/QCameraStateMachine(  278): int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): already in preview stopped state, do nothing

              D/QCamera2HWI(  278): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): X

              I/QCameraHalWatchdog(  278): Stopped Watchdog Thread...

              I/QCameraHalWatchdog(  278): Starting Watchdog Thread...

              D/QCameraStateMachine(  278): int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): No ops for evt(20) in state(0)

              D/QCamera2HWI(  278): [KPI Perf] static int qcamera::QCamera2HardwareInterface::close_camera_device(hw_device_t*): E

              D/QCamera2HWI(  278): static void* qcamera::QCamera2HardwareInterface::defferedWorkRoutine(void*): stop data proc

              E/qomx_image_core(  278): OMX_Deinit:118] Complete

              E/QCameraPostProc(  278): int32_t qcamera::QCameraPostProcessor::deinit(): Jpeg closed, rc = 0, mJpegClientHandle = 4ef00

              E/mm-camera(  350): mct_pipeline_get_stream: no children

              E/mm-camera(  350): mct_pipeline_process_set:1824: Couldn't find stream

              I/MediaFocusControl( 1014):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@4261e870

              I/OMXNodeInstance(  278): OMX_FreeBuffer for buffer header 0xb86ec9f8 successful

              W/ContextImpl( 1307): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114

              I/APP     (19145): I 09/05/2014 20:37:03:228 00004afd           HttpServer| Process URI: '/app/Group/nat_cam'

              I/APP     (19145): I 09/05/2014 20:37:03:229 00004afd                  APP| RHO serve: /app/Group/nat_cam

              I/APP     (19145): I 09/05/2014 20:37:03:230 00004afd                  APP| Params: {"__rho_object"=>{"__rho_inline"=>"0"}, "rho_callback"=>"1"}

              I/APP     (19145): E 09/05/2014 20:37:03:230 00004afd           JNIRhoRuby| rho_cast<VALUE, jobject>: unknown type of value

              I/APP     (19145): I 09/05/2014 20:37:03:231 00004afd                  APP| Native camera app callback

              I/APP     (19145): I 09/05/2014 20:37:03:231 00004afd                  APP| App error: undefined method `[]' for nil:NilClass

              I/APP     (19145):  apps/app/Group/group_controller.rb:322:in `nat_cam'

              I/APP     (19145): lib/rho/rhocontroller.rb:101:in `serve'

              I/APP     (19145): lib/rho/rhoapplication.rb:217:in `serve'

               

               

              I'm not sure what I'm supposed to put in the ":data" section of the Intent call, i understand it needs a fileUri, but I thought this is what the EXTRA_DATA Medistorage does for me ?

               

              any help appreciated

              grtz,

              gert

                • Re: Rho::Intent.send relaunches app at end of activity
                  Kutir Mobility

                  Hi c3a705cb-94a6-410c-ab59-8f9a7100c235

                  The error in your log shows as

                   

                  I/APP     (19145): I 09/05/2014 20:37:03:231 00004afd                  APP| App error: undefined method `[]' for nil:NilClass

                  I/APP     (19145):  apps/app/Group/group_controller.rb:322:in `nat_cam'

                   

                  Can you please check it ?

                   

                  >>I'm not sure what I'm supposed to put in the ":data" section of the Intent call, i understand it needs a fileUri, but I  thought this is what the EXTRA_DATA Medistorage does for me ?

                   

                  "data" params is similar to Intent.putExtra() which is used to pass extra strings if required.

                   

                  Thank you.

                  Visnupriya

                  Kutir Mobility

                    • Re: Rho::Intent.send relaunches app at end of activity
                      Gert Vandelaer

                      Hi Kutir,

                       

                      that empty array is part of the callback 'nat_cam'   : puts "Return : #{@params['data']['output']}"

                       

                      It is called after the Intent opens up the native camera app and I succesfully am able to take a picture. So at least the Intent gets launched fine, I know that for sure.

                       

                      I put that "puts" there to try and see what is being returned from the Intent, but with no luck,

                      This is the callback part where the "puts" gives the error, and than the application relaunches :

                       

                      I/APP     (19145): I 09/05/2014 20:37:03:228 00004afd           HttpServer| Process URI: '/app/Group/nat_cam'

                      I/APP     (19145): I 09/05/2014 20:37:03:229 00004afd                  APP| RHO serve: /app/Group/nat_cam

                      I/APP     (19145): I 09/05/2014 20:37:03:230 00004afd                  APP| Params: {"__rho_object"=>{"__rho_inline"=>"0"}, "rho_callback"=>"1"}

                      I/APP     (19145): E 09/05/2014 20:37:03:230 00004afd           JNIRhoRuby| rho_cast<VALUE, jobject>: unknown type of value

                      I/APP     (19145): I 09/05/2014 20:37:03:231 00004afd                  APP| Native camera app callback

                      I/APP     (19145): I 09/05/2014 20:37:03:231 00004afd                  APP| App error: undefined method `[]' for nil:NilClass

                       

                      Indeed, I had read in the documentation what the "data" section is, and I tried giving it a content_location based on get_base_app_path()  (as per Android API this needs to be in "content://"-format) to store the picture taken where I can access it later from my app.

                      And according to Rhodes docs, I should be able to read out that info in the callback from @params['data']['output'], but it's not there.  So maybe I'm launching the Intent not entirely correctly ?

                       

                      Any advice much appreciated

                       

                      thnx & grtz,

                      Gert

                       

                      def open_native_camera

                        puts "Open Native camera app"

                        file = Rho::RhoFile.join(Rho::RhoApplication::get_base_app_path(), "#{$loggedin}_group")

                        puts "File for output : #{file}"

                       

                        intent_params = { :action     => "android.media.action.IMAGE_CAPTURE",

                                          :intentType => Rho::Intent::START_ACTIVITY,

                                          #:uri        => "content://"+,

                                          :data       => { :output => "content://#{file}" }

                                          #:callback   => ( url_for :action => :nat_cam )

                                        }

                        Rho::Intent.send(intent_params, (url_for :action => :nat_cam ))

                      end

                       

                      def nat_cam

                        puts "Native camera app callback"

                        puts "Return : #{@params['data']['output']}"

                      end

                        • Re: Re: Rho::Intent.send relaunches app at end of activity
                          Kutir Mobility

                          Hi Gert,

                           

                          IMHO, I understand what you are trying.

                          When I tried to puts the params on callback function, I see the below data in my console/log.

                          APP|{"rho_calback" => "1","data" => nil, "action" => "inline-data","responseCode" => -1,"intentType" =>"startActivity", "uri" => "content://media/external/images/media/5392"}
                          

                          Here, data params comes as nil. But the app doesn't relaunches. I also attached the sample app we built for your reference. Can you try it on Android device and let me know.

                           

                          Visnupriya R

                          Kutir Mobility

                            • Re: Rho::Intent.send relaunches app at end of activity
                              Kutir Mobility

                              Hi c3a705cb-94a6-410c-ab59-8f9a7100c235

                              Did you had chance to run the sample app?

                               

                              Thank you.

                              Visnupriya R

                              Kutir Mobility

                                • Re: Rho::Intent.send relaunches app at end of activity
                                  Gert Vandelaer

                                  'lo Kutir,

                                   

                                  I've just tried the sample app, result is sort of the same, just that the app relaunches during the Intent.ACITIVTY (so when it's in the background...)

                                   

                                  This is the log at "CameraCapture" launch

                                   

                                  I/APP     (16402): I 09/18/2014 20:11:40:822 00004053           HttpServer| Process URI: '/app/IntentTest/capture_image'

                                  I/APP     (16402): I 09/18/2014 20:11:40:823 00004053                  APP| RHO serve: /app/IntentTest/capture_image

                                  I/APP     (16402): I 09/18/2014 20:11:40:824 00004053                  APP| Open Native camera app

                                  I/APP     (16402): I 09/18/2014 20:11:40:825 00004053                  APP| File for output : /data/data/com.rhomobile.sample_app/rhodata/apps/_group

                                  I/APP     (16402): I 09/18/2014 20:11:40:829 00004012 AndroidFunctionality| Pause WebView

                                  I/APP     (16402): I 09/18/2014 20:11:40:840 00004053           HttpServer| GC Start.

                                  I/APP     (16402): I 09/18/2014 20:11:40:851 00004053           HttpServer| GC End.

                                  I/APP     (16402): I 09/18/2014 20:11:40:853 00004053           HttpServer| Process URI: '/system/uidestroyed'

                                  I/APP     (16402): I 09/18/2014 20:11:40:854 00004053                  APP| AppEvent UIDestroyed

                                  I/APP     (16402): I 09/18/2014 20:11:40:858 00004012    RhodesApplication| New UiState: MainActivityPaused

                                  I/APP     (16402): I 09/18/2014 20:11:41:406 00004012    RhodesApplication| New AppState: AppDeactivated

                                  I/APP     (16402): I 09/18/2014 20:11:41:406 00004012        RhodesService| activityStopped() temporary release wakeLock object

                                  I/APP     (16402): I 09/18/2014 20:11:41:407 00004012            RhodesApp| callAppActiveCallback

                                  I/APP     (16402): I 09/18/2014 20:11:41:407 00004012         AppCallbacks| addCommand: APP-DEACTIVATED

                                  I/APP     (16402): I 09/18/2014 20:11:41:409 00004052         AppCallbacks| APP-DEACTIVATED is received ++++++++++++++++++++++++++++

                                  I/APP     (16402): I 09/18/2014 20:11:41:409 00004052         AppCallbacks| process command: APP-DEACTIVATED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

                                  I/APP     (16402): I 09/18/2014 20:11:41:409 00004052         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...

                                  I/APP     (16402): I 09/18/2014 20:11:41:414 00004053           HttpServer| Process URI: '/system/deactivateapp'

                                  I/APP     (16402): I 09/18/2014 20:11:41:415 00004053                  APP| AppEvent Deactivated

                                  D/QCamera2HWI(  278): [KPI Perf] static void* qcamera::QCameraCbNotifier::cbNotifyRoutine(void*) : PROFILE_SENDING_FOCUS_EVT_TO APP

                                  D/QCamera2HWI(  278): [KPI Perf] static void* qcamera::QCameraCbNotifier::cbNotifyRoutine(void*) : PROFILE_SENDING_FOCUS_EVT_TO APP

                                  D/QCamera2HWI(  278): [KPI Perf] static void* qcamera::QCameraCbNotifier::cbNotifyRoutine(void*) : PROFILE_SENDING_FOCUS_EVT_TO APP

                                  D/QCamera2HWI(  278): [KPI Perf] static void* qcamera::QCameraCbNotifier::cbNotifyRoutine(void*) : PROFILE_SENDING_FOCUS_EVT_TO APP

                                  W/BroadcastQueue( 1014): Permission Denial: broadcasting Intent { act=android.net.conn.INET_CONDITION_ACTION flg=0x4000010 (has extras) } from null (pid=-1, uid=-1) requires com.facebook.permission.prod.FB_APP_COMMUNICATION due to registered receiver BroadcastFilter{4340fd10 u0 ReceiverList{43412568 17752 com.facebook.katana/10161/u0 remote:434b16f0}}

                                  W/BroadcastQueue( 1014): Permission Denial: broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } from null (pid=-1, uid=-1) requires com.facebook.permission.prod.FB_APP_COMMUNICATION due to registered receiver BroadcastFilter{4340fd10 u0 ReceiverList{43412568 17752 com.facebook.katana/10161/u0 remote:434b16f0}}

                                  ... some more weird facebook.permission messages ...

                                   

                                  Than I take picture, and the app seems to re-initialize ..

                                   

                                  I/APP     (18200): I 09/18/2014 20:11:54:194 00004718    RhodesApplication| Initialized

                                  I/APP     (18200): I 09/18/2014 20:11:54:195 00004718    LocalFileProvider| Revoke URI permissions: content://com.godsells.wyoki

                                  I/APP     (18200): I 09/18/2014 20:11:54:196 00004718               Rhodes| Loading...

                                  I/APP     (18200): I 09/18/2014 20:11:54:197 0000472a         AppCallbacks| Starting main routine...

                                  I/APP     (18200): I 09/18/2014 20:11:54:197 0000472a         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...

                                  I/APP     (18200): I 09/18/2014 20:11:54:197 00004718            RhodesApp| Trying to get free listening port.

                                  I/APP     (18200): I 09/18/2014 20:11:54:197 00004718            RhodesApp| Trying to bind of 12345 port...

                                  I/APP     (18200): I 09/18/2014 20:11:54:198 00004718            RhodesApp| Got port to bind on: 12345

                                  I/APP     (18200): I 09/18/2014 20:11:54:198 00004718            RhodesApp| Free listening port: 12345

                                  I/APP     (18200): I 09/18/2014 20:11:54:344 0000473b            RhodesApp| Starting RhodesApp main routine...

                                  I/APP     (18200): I 09/18/2014 20:11:54:351 00004718 ConnectionChangeReceiver| LOGGER: Network status change, connected = true

                                  I/APP     (18200): E 09/18/2014 20:11:54:352 00004718         RhodesAppJNI| nativeNotify

                                  I/APP     (18200): E 09/18/2014 20:11:54:352 00004718            RhodesApp| enter notifyReceiver

                                  I/APP     (18200): E 09/18/2014 20:11:54:359 00004718            RhodesApp| calling onNetworkStatusChanged

                                  I/APP     (18200): I 09/18/2014 20:11:54:388 0000473b              RhoRuby| Init_RhoBlobs: /data/data/com.godsells.wyoki/rhodata/db/db-files

                                  I/APP     (18200): I 09/18/2014 20:11:54:403 0000473b              RhoRuby| require_compiled: RhoSystemApi

                                  I/APP     (18200): I 09/18/2014 20:11:54:412 0000473b              RhoRuby| require_compiled: RhoApplicationApi

                                  ....

                                   

                                  I'm still in the Intent activity, the native camera app ... I still have to tap the "V" to select the picture I've just taken ... So I do, and I get returned to the app immediately

                                  but there's not image_uri, it looks exactly the same as what I got earlier with my code.

                                   

                                  I/APP     (18200): I 09/18/2014 20:11:54:780 0000472a         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...

                                  D/Checkin (16736): publish the event [tag = MOT_CAMERA_STATS event name = USER_EXITED_APP]

                                  I/APP     (16402): I 09/18/2014 20:12:08:485 00004053           HttpServer| Process URI: '/app/IntentTest/camera_callback'

                                  I/APP     (16402): I 09/18/2014 20:12:08:489 00004053                  APP| RHO serve: /app/IntentTest/camera_callback

                                  I/APP     (16402): I 09/18/2014 20:12:08:490 00004053                  APP| Params: {"__rho_object"=>{"__rho_inline"=>"0"}, "rho_callback"=>"1"}

                                  I/APP     (16402): E 09/18/2014 20:12:08:490 00004053           JNIRhoRuby| rho_cast<VALUE, jobject>: unknown type of value

                                  I/APP     (16402): I 09/18/2014 20:12:08:491 00004053                  APP| {"rho_callback"=>"1", "data"=>nil, "action"=>"inline-data", "responseCode"=>-1, "intentType"=>"startActivity"}

                                  I/APP     (16402): I 09/18/2014 20:12:08:491 00004053                  APP| "-----------------camera_callback"

                                  I/APP     (16402): I 09/18/2014 20:12:08:491 00004053                  APP| nil

                                  I/APP     (16402): I 09/18/2014 20:12:08:509 00004012            RhodesApp| callAppActiveCallback

                                  I/APP     (16402): I 09/18/2014 20:12:08:509 00004012         AppCallbacks| addCommand: APP-ACTIVATED

                                  I/APP     (16402): I 09/18/2014 20:12:08:510 00004052         AppCallbacks| APP-ACTIVATED is received ++++++++++++++++++++++++++++

                                  I/APP     (16402): I 09/18/2014 20:12:08:510 00004052         AppCallbacks| Restart local server ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                                  I/APP     (16402): I 09/18/2014 20:12:08:510 00004052            RhodesApp| restart local server.

                                  I/APP     (16402): I 09/18/2014 20:12:08:510 00004052           HttpServer| Stopping server...

                                  I/APP     (16402): I 09/18/2014 20:12:08:509 00004053           HttpServer| GC Start.

                                  I/APP     (16402): I 09/18/2014 20:12:08:511 00004012    RhodesApplication| New AppState: AppActivated

                                  I/APP     (16402): I 09/18/2014 20:12:08:511 00004012    RhodesApplication| New UiState: MainActivityStarted

                                  I/APP     (16402): I 09/18/2014 20:12:08:511 00004012 AndroidFunctionality| Resume WebView

                                  I/APP     (16402): I 09/18/2014 20:12:08:512 00004012    RhodesApplication| New UiState: MainActivitiResumed

                                  I/APP     (16402): I 09/18/2014 20:12:08:519 00004053           HttpServer| GC End.

                                  I/APP     (16402): I 09/18/2014 20:12:08:547 00004012       SimpleMainView| Cleared URL: http://127.0.0.1:54334/app/IntentTest

                                  I/APP     (16402): I 09/18/2014 20:12:08:603 00004053           HttpServer| Start HTTP server

                                  I/APP     (16402): I 09/18/2014 20:12:08:570 00004052         AppCallbacks| Continue after server restart =======================================

                                  I/APP     (16402): I 09/18/2014 20:12:08:603 00004052         AppCallbacks| Received command APP-ACTIVATED which is greater than expected (LOCAL-SERVER-STARTED) - postpone it

                                   

                                  what could be causing this different behavior from your builds ?

                                   

                                  grtz & thnx

                                  gert